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
10namespace Eris
11{
12
16class BaseException : public std::runtime_error
17{
18public:
19 explicit BaseException(const std::string& m) noexcept:
20 std::runtime_error(m) {}
21
22 ~BaseException() noexcept override = default;
23};
24
26{
27public:
28 explicit InvalidOperation(const std::string &m) noexcept:
29 BaseException(m) {}
30
31 ~InvalidOperation() noexcept override = default;
32};
33
36{
37public:
38 explicit InvalidAtlas(const std::string& msg) noexcept :
39 BaseException(msg){}
40
41
42 ~InvalidAtlas() noexcept override = default;
43};
44
46{
47public:
48 explicit NetworkFailure(const std::string &s) noexcept:
49 BaseException(s) {}
50
51 ~NetworkFailure() noexcept override = default;
52};
53
54}
55
56#endif
Exception used to indicated malformed or unexpected Atlas from the server.
Definition: Exceptions.h:36
Definition: Account.cpp:33