/usr/include/Eris-1.3/Eris/Exceptions.h is in liberis-1.3-dev 1.3.19-5ubuntu2.
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 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 | #ifndef ERIS_EXCEPTIONS_H
#define ERIS_EXCEPTIONS_H
#include <Atlas/Objects/Root.h>
#include <Atlas/Objects/SmartPtr.h>
#include <string>
#include <stdexcept>
namespace Eris
{
/**
This is the Eris base for all exceptions; note it inherits from std::except,
which isn't ideal. One option would be to refactor the various final
exceptions so they inherit from the 'closest' ISO C++ exception, but it
hardly seems worth it.
*/
class BaseException : public std::runtime_error
{
public:
BaseException(const std::string &m) :
std::runtime_error(m), _msg(m) {;}
virtual ~BaseException() throw();
const std::string _msg;
};
class InvalidOperation : public BaseException
{
public:
InvalidOperation(const std::string &m) : BaseException(m) {;}
virtual ~InvalidOperation() throw();
};
/// Exception used to indicated malformed or unexpected Atlas from the server
class InvalidAtlas : public BaseException
{
public:
InvalidAtlas(const std::string& msg, const Atlas::Objects::Root& obj);
InvalidAtlas(const std::string& msg, const Atlas::Message::Element& el);
virtual ~InvalidAtlas() throw();
private:
Atlas::Objects::Root m_obj;
};
class NetworkFailure : public BaseException
{
public:
NetworkFailure(const std::string &s) :
BaseException(s) {;}
virtual ~NetworkFailure() throw();
};
}
#endif
|