eris
1.4.0
A WorldForge client library.
Exceptions.h
1
#ifndef ERIS_EXCEPTIONS_H
2
#define ERIS_EXCEPTIONS_H
3
4
#include <Atlas/Objects/Root.h>
5
#include <Atlas/Objects/SmartPtr.h>
6
7
#include <string>
8
#include <stdexcept>
9
10
namespace
Eris
11
{
12
16
class
BaseException
:
public
std::runtime_error
17
{
18
public
:
19
explicit
BaseException
(
const
std::string& m) noexcept:
20
std::runtime_error(m) {}
21
22
~
BaseException
() noexcept
override
=
default
;
23
};
24
25
class
InvalidOperation
:
public
BaseException
26
{
27
public
:
28
explicit
InvalidOperation
(
const
std::string &m) noexcept:
29
BaseException
(m) {}
30
31
~
InvalidOperation
() noexcept
override
=
default
;
32
};
33
35
class
InvalidAtlas
:
public
BaseException
36
{
37
public
:
38
explicit
InvalidAtlas
(
const
std::string& msg) noexcept :
39
BaseException
(msg){}
40
41
42
~
InvalidAtlas
() noexcept
override
=
default
;
43
};
44
45
class
NetworkFailure
:
public
BaseException
46
{
47
public
:
48
explicit
NetworkFailure
(
const
std::string &s) noexcept:
49
BaseException
(s) {}
50
51
~
NetworkFailure
() noexcept
override
=
default
;
52
};
53
54
}
55
56
#endif
Eris::BaseException
Definition:
Exceptions.h:16
Eris
Definition:
Account.cpp:33
Eris::InvalidOperation
Definition:
Exceptions.h:25
Eris::NetworkFailure
Definition:
Exceptions.h:45
Eris::InvalidAtlas
Exception used to indicated malformed or unexpected Atlas from the server.
Definition:
Exceptions.h:35
src
Eris
Exceptions.h
Generated by
1.8.17