1.00.0
C++ Standard Airline IT Object Library
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
stdair_exceptions.hpp
Go to the documentation of this file.
1
#ifndef __STDAIR_STDAIR_EXCEPTIONS_HPP
2
#define __STDAIR_STDAIR_EXCEPTIONS_HPP
3
4
// //////////////////////////////////////////////////////////////////////
5
// Import section
6
// //////////////////////////////////////////////////////////////////////
7
// STL
8
#include <string>
9
10
namespace
stdair {
11
19
class
RootException
:
public
std::exception {
20
public
:
24
RootException
(
const
std::string& iWhat) :
_what
(iWhat) {}
28
RootException
() :
_what
(
"No further details"
) {}
29
33
virtual
~RootException
() throw() {}
34
38
const
char
*
what
()
const
throw() {
39
return
_what
.c_str();
40
}
41
42
protected
:
46
std::string
_what
;
47
};
48
50
class
FileNotFoundException
:
public
RootException
{
51
public
:
53
FileNotFoundException
(
const
std::string& iWhat) :
RootException
(iWhat) {}
54
};
55
57
class
NonInitialisedLogServiceException
:
public
RootException
{
58
public
:
60
NonInitialisedLogServiceException
(
const
std::string& iWhat)
61
:
RootException
(iWhat) {}
62
};
63
65
class
NonInitialisedServiceException
:
public
RootException
{
66
public
:
68
NonInitialisedServiceException
(
const
std::string& iWhat)
69
:
RootException
(iWhat) {}
70
};
71
73
class
NonInitialisedContainerException
:
public
RootException
{
74
public
:
76
NonInitialisedContainerException
(
const
std::string& iWhat)
77
:
RootException
(iWhat) {}
78
};
79
81
class
NonInitialisedRelationShipException
:
public
RootException
{
82
public
:
84
NonInitialisedRelationShipException
(
const
std::string& iWhat)
85
:
RootException
(iWhat) {}
86
};
87
89
class
MemoryAllocationException
:
public
RootException
{
90
public
:
92
MemoryAllocationException
(
const
std::string& iWhat)
93
:
RootException
(iWhat) {}
94
};
95
97
class
ObjectLinkingException
:
public
RootException
{
98
public
:
100
ObjectLinkingException
(
const
std::string& iWhat) :
RootException
(iWhat) {}
101
};
102
104
class
DocumentNotFoundException
:
public
RootException
{
105
public
:
107
DocumentNotFoundException
(
const
std::string& iWhat)
108
:
RootException
(iWhat) {}
109
};
110
112
class
ParserException
:
public
RootException
{
113
public
:
115
ParserException
(
const
std::string& iWhat) :
RootException
(iWhat) {}
116
};
117
119
class
SerialisationException
:
public
RootException
{
120
public
:
122
SerialisationException
(
const
std::string& iWhat) :
RootException
(iWhat) {}
123
};
124
126
class
KeyNotFoundException
:
public
RootException
{
127
public
:
129
KeyNotFoundException
(
const
std::string& iWhat) :
RootException
(iWhat) {}
130
};
131
133
class
CodeConversionException
:
public
ParserException
{
134
public
:
136
CodeConversionException
(
const
std::string& iWhat)
137
:
ParserException
(iWhat) {}
138
};
139
141
class
CodeDuplicationException
:
public
ParserException
{
142
public
:
144
CodeDuplicationException
(
const
std::string& iWhat)
145
:
ParserException
(iWhat) {}
146
};
147
149
class
KeyDuplicationException
:
public
ParserException
{
150
public
:
152
KeyDuplicationException
(
const
std::string& iWhat)
153
:
ParserException
(iWhat) {}
154
};
155
157
class
ObjectCreationgDuplicationException
:
public
ParserException
{
158
public
:
160
ObjectCreationgDuplicationException
(
const
std::string& iWhat)
161
:
ParserException
(iWhat) {}
162
};
163
165
class
ObjectNotFoundException
:
public
RootException
{
166
public
:
168
ObjectNotFoundException
(
const
std::string& iWhat)
169
:
RootException
(iWhat) {}
170
};
171
173
class
ParsingFileFailedException
:
public
ParserException
{
174
public
:
176
ParsingFileFailedException
(
const
std::string& iWhat)
177
:
ParserException
(iWhat) {}
178
};
179
181
class
SQLDatabaseException
:
public
RootException
{
182
public
:
184
SQLDatabaseException
(
const
std::string& iWhat) :
RootException
(iWhat) {}
185
};
186
188
class
NonInitialisedDBSessionManagerException
:
public
RootException
{
189
public
:
191
NonInitialisedDBSessionManagerException
(
const
std::string& iWhat)
192
:
RootException
(iWhat) {}
193
};
194
196
class
SQLDatabaseConnectionImpossibleException
:
public
SQLDatabaseException
{
197
public
:
199
SQLDatabaseConnectionImpossibleException
(
const
std::string& iWhat)
200
:
SQLDatabaseException
(iWhat) {}
201
};
202
204
class
EventException
:
public
RootException
{
205
public
:
207
EventException
(
const
std::string& iWhat) :
RootException
(iWhat) {}
208
};
209
211
class
SimpleNestingStructException
:
public
RootException
{
212
public
:
214
SimpleNestingStructException
(
const
std::string& iWhat)
215
:
RootException
(iWhat) {}
216
};
217
219
class
BookingClassListEmptyInNestingStructException
:
220
public
SimpleNestingStructException
{
221
public
:
223
BookingClassListEmptyInNestingStructException
(
const
std::string& iWhat)
224
:
SimpleNestingStructException
(iWhat) {}
225
};
226
227
}
228
#endif // __STDAIR_STDAIR_EXCEPTIONS_HPP
Generated on Sat Dec 22 2012 16:51:54 for StdAir by
1.8.1.1