librcsb-core-wrapper 1.005
Exceptions.h
Go to the documentation of this file.
1//$$FILE$$
2//$$VERSION$$
3//$$DATE$$
4//$$LICENSE$$
5
6
12
13
14#ifndef EXCEPTIONS_H
15#define EXCEPTIONS_H
16
17
18#include <stdexcept>
19#include <string>
20
21
23class 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());
48
49};
50
51
54{
55
56 public:
57 NotFoundException(const std::string& message = std::string(),
58 const std::string& location = std::string());
60
61};
62
63
66{
67
68 public:
69 AlreadyExistsException(const std::string& message = std::string(),
70 const std::string& location = std::string());
72
73};
74
75
78{
79
80 public:
81 EmptyContainerException(const std::string& message = std::string(),
82 const std::string& location = std::string());
84
85};
86
87
90{
91
92 public:
93 FileModeException(const std::string& message = std::string(),
94 const std::string& location = std::string());
96
97};
98
99
102{
103
104 public:
105 InvalidStateException(const std::string& message = std::string(),
106 const std::string& location = std::string());
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());
130};
131
134{
135
136 public:
137 VersionMismatchException(const std::string& message = std::string(),
138 const std::string& location = std::string());
140
141};
142
143#endif
AlreadyExistsException(const std::string &message=std::string(), const std::string &location=std::string())
EmptyContainerException(const std::string &message=std::string(), const std::string &location=std::string())
EmptyValueException(const std::string &message=std::string(), const std::string &location=std::string())
FileException(const std::string &message=std::string(), const std::string &location=std::string())
FileModeException(const std::string &message=std::string(), const std::string &location=std::string())
InvalidOptionsException(const std::string &message=std::string(), const std::string &location=std::string())
InvalidStateException(const std::string &message=std::string(), const std::string &location=std::string())
NotFoundException(const std::string &message=std::string(), const std::string &location=std::string())
std::string _message
Definition Exceptions.h:26
RcsbException(const std::string &message=std::string(), const std::string &location=std::string())
void AppendMessage(const std::string &message=std::string(), const std::string &location=std::string())
const char * what() const
VersionMismatchException(const std::string &message=std::string(), const std::string &location=std::string())