Eris  1.4.0
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 
26 {
27 public:
28  explicit InvalidOperation(const std::string &m) noexcept:
29  BaseException(m) {;}
30 
31  ~InvalidOperation() noexcept override = default;
32 };
33 
36 {
37 public:
38  InvalidAtlas(const std::string& msg) noexcept :
39  BaseException(msg){}
40 
41 
42  ~InvalidAtlas() noexcept override = default;
43 };
44 
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
Definition: Exceptions.h:25
This is the Eris base for all exceptions.
Definition: Exceptions.h:16
Every Eris class and type lives inside the Eris namespace; certain utility functions live in the Util...
Definition: Account.cpp:34
Exception used to indicated malformed or unexpected Atlas from the server.
Definition: Exceptions.h:35
Definition: Exceptions.h:45