/usr/include/odil/Exception.h is in libodil-dev 0.8.0-4build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 | /*************************************************************************
* odil - Copyright (C) Universite de Strasbourg
* Distributed under the terms of the CeCILL-B license, as published by
* the CEA-CNRS-INRIA. Refer to the LICENSE file or to
* http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
* for details.
************************************************************************/
#ifndef _b9607695_cb3b_4188_8caa_bc8bb051ef28
#define _b9607695_cb3b_4188_8caa_bc8bb051ef28
#include <exception>
#include <string>
#include "odil/odil.h"
namespace odil
{
/// @brief Base class for odil exceptions.
class ODIL_API Exception: public std::exception
{
public:
/// @brief Message string constructor.
Exception(std::string const & message="");
/// @brief Destructor.
virtual ~Exception() noexcept;
/// @brief Return the reason for the exception.
virtual const char* what() const noexcept;
protected:
/// @brief Message of the exception.
std::string _message;
};
}
#endif // _b9607695_cb3b_4188_8caa_bc8bb051ef28
|