librcsb-core-wrapper  1.000
Exceptions.h
Go to the documentation of this file.
1 //$$FILE$$
2 //$$VERSION$$
3 //$$DATE$$
4 //$$LICENSE$$
5 
6 
14 #ifndef EXCEPTIONS_H
15 #define EXCEPTIONS_H
16 
17 
18 #include <stdexcept>
19 #include <string>
20 
21 
23 class RcsbException : public std::exception
24 {
25  protected:
26  std::string _message;
27 
28  public:
29  RcsbException(const std::string& message = std::string(),
30  const std::string& location = std::string());
31  ~RcsbException() throw();
32 
33  void AppendMessage(const std::string& message = std::string(),
34  const std::string& location = std::string());
35 
36  const char* what() const throw();
37 };
38 
39 
42 {
43 
44  public:
45  EmptyValueException(const std::string& message = std::string(),
46  const std::string& location = std::string());
47  ~EmptyValueException() throw();
48 
49 };
50 
51 
54 {
55 
56  public:
57  NotFoundException(const std::string& message = std::string(),
58  const std::string& location = std::string());
59  ~NotFoundException() throw();
60 
61 };
62 
63 
66 {
67 
68  public:
69  AlreadyExistsException(const std::string& message = std::string(),
70  const std::string& location = std::string());
71  ~AlreadyExistsException() throw();
72 
73 };
74 
75 
78 {
79 
80  public:
81  EmptyContainerException(const std::string& message = std::string(),
82  const std::string& location = std::string());
83  ~EmptyContainerException() throw();
84 
85 };
86 
87 
90 {
91 
92  public:
93  FileModeException(const std::string& message = std::string(),
94  const std::string& location = std::string());
95  ~FileModeException() throw();
96 
97 };
98 
99 
102 {
103 
104  public:
105  InvalidStateException(const std::string& message = std::string(),
106  const std::string& location = std::string());
107  ~InvalidStateException() throw();
108 
109 };
110 
111 
114 {
115 
116  public:
117  FileException(const std::string& message = std::string(),
118  const std::string& location = std::string());
119  ~FileException() throw();
120 
121 };
122 
125 {
126  public:
127  InvalidOptionsException(const std::string& message = std::string(),
128  const std::string& location = std::string());
129  ~InvalidOptionsException() throw();
130 };
131 
134 {
135 
136  public:
137  VersionMismatchException(const std::string& message = std::string(),
138  const std::string& location = std::string());
139  ~VersionMismatchException() throw();
140 
141 };
142 
143 #endif