StdAir Logo  1.00.10
C++ Standard Airline IT Object Library
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 
51  public:
53  FileNotFoundException (const std::string& iWhat) : RootException (iWhat) {}
54  };
55 
58  public:
60  NonInitialisedLogServiceException (const std::string& iWhat)
61  : RootException (iWhat) {}
62  };
63 
66  public:
68  NonInitialisedServiceException (const std::string& iWhat)
69  : RootException (iWhat) {}
70  };
71 
74  public:
76  NonInitialisedContainerException (const std::string& iWhat)
77  : RootException (iWhat) {}
78  };
79 
82  public:
84  NonInitialisedRelationShipException (const std::string& iWhat)
85  : RootException (iWhat) {}
86  };
87 
90  public:
92  MemoryAllocationException (const std::string& iWhat)
93  : RootException (iWhat) {}
94  };
95 
98  public:
100  ObjectLinkingException (const std::string& iWhat) : RootException (iWhat) {}
101  };
102 
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 
120  public:
122  SerialisationException (const std::string& iWhat) : RootException (iWhat) {}
123  };
124 
127  public:
129  KeyNotFoundException (const std::string& iWhat) : RootException (iWhat) {}
130  };
131 
134  public:
136  CodeConversionException (const std::string& iWhat)
137  : ParserException (iWhat) {}
138  };
139 
142  public:
144  CodeDuplicationException (const std::string& iWhat)
145  : ParserException(iWhat) {}
146  };
147 
150  public:
152  KeyDuplicationException (const std::string& iWhat)
153  : ParserException(iWhat) {}
154  };
155 
158  public:
160  ObjectCreationgDuplicationException (const std::string& iWhat)
161  : ParserException (iWhat) {}
162  };
163 
166  public:
168  ObjectNotFoundException (const std::string& iWhat)
169  : RootException (iWhat) {}
170  };
171 
174  public:
176  ParsingFileFailedException (const std::string& iWhat)
177  : ParserException (iWhat) {}
178  };
179 
182  public:
184  SQLDatabaseException (const std::string& iWhat) : RootException (iWhat) {}
185  };
186 
189  public:
191  NonInitialisedDBSessionManagerException (const std::string& iWhat)
192  : RootException (iWhat) {}
193  };
194 
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 
212  public:
214  SimpleNestingStructException (const std::string& iWhat)
215  : RootException (iWhat) {}
216  };
217 
221  public:
224  : SimpleNestingStructException (iWhat) {}
225  };
226 
227 }
228 #endif // __STDAIR_STDAIR_EXCEPTIONS_HPP
stdair::ParsingFileFailedException
Definition: stdair_exceptions.hpp:173
stdair::DocumentNotFoundException::DocumentNotFoundException
DocumentNotFoundException(const std::string &iWhat)
Definition: stdair_exceptions.hpp:107
stdair::NonInitialisedDBSessionManagerException::NonInitialisedDBSessionManagerException
NonInitialisedDBSessionManagerException(const std::string &iWhat)
Definition: stdair_exceptions.hpp:191
stdair::SerialisationException::SerialisationException
SerialisationException(const std::string &iWhat)
Definition: stdair_exceptions.hpp:122
stdair::RootException::~RootException
virtual ~RootException()
Definition: stdair_exceptions.hpp:33
stdair::ObjectNotFoundException::ObjectNotFoundException
ObjectNotFoundException(const std::string &iWhat)
Definition: stdair_exceptions.hpp:168
stdair::ObjectCreationgDuplicationException
Definition: stdair_exceptions.hpp:157
stdair::NonInitialisedContainerException
Definition: stdair_exceptions.hpp:73
stdair::CodeConversionException
Definition: stdair_exceptions.hpp:133
stdair::EventException::EventException
EventException(const std::string &iWhat)
Definition: stdair_exceptions.hpp:207
stdair::ObjectLinkingException::ObjectLinkingException
ObjectLinkingException(const std::string &iWhat)
Definition: stdair_exceptions.hpp:100
stdair::SimpleNestingStructException::SimpleNestingStructException
SimpleNestingStructException(const std::string &iWhat)
Definition: stdair_exceptions.hpp:214
stdair::RootException::_what
std::string _what
Definition: stdair_exceptions.hpp:46
stdair::ParserException::ParserException
ParserException(const std::string &iWhat)
Definition: stdair_exceptions.hpp:115
stdair::NonInitialisedLogServiceException::NonInitialisedLogServiceException
NonInitialisedLogServiceException(const std::string &iWhat)
Definition: stdair_exceptions.hpp:60
stdair::ObjectCreationgDuplicationException::ObjectCreationgDuplicationException
ObjectCreationgDuplicationException(const std::string &iWhat)
Definition: stdair_exceptions.hpp:160
stdair::CodeDuplicationException::CodeDuplicationException
CodeDuplicationException(const std::string &iWhat)
Definition: stdair_exceptions.hpp:144
stdair::RootException::RootException
RootException()
Definition: stdair_exceptions.hpp:28
stdair::KeyNotFoundException
Definition: stdair_exceptions.hpp:126
stdair::DocumentNotFoundException
Definition: stdair_exceptions.hpp:104
stdair::FileNotFoundException::FileNotFoundException
FileNotFoundException(const std::string &iWhat)
Definition: stdair_exceptions.hpp:53
stdair::NonInitialisedServiceException::NonInitialisedServiceException
NonInitialisedServiceException(const std::string &iWhat)
Definition: stdair_exceptions.hpp:68
stdair::MemoryAllocationException
Definition: stdair_exceptions.hpp:89
stdair::NonInitialisedServiceException
Definition: stdair_exceptions.hpp:65
stdair::SerialisationException
Definition: stdair_exceptions.hpp:119
stdair::ObjectLinkingException
Definition: stdair_exceptions.hpp:97
stdair::FileNotFoundException
Definition: stdair_exceptions.hpp:50
stdair
Handle on the StdAir library context.
Definition: BasChronometer.cpp:9
stdair::NonInitialisedRelationShipException
Definition: stdair_exceptions.hpp:81
stdair::NonInitialisedRelationShipException::NonInitialisedRelationShipException
NonInitialisedRelationShipException(const std::string &iWhat)
Definition: stdair_exceptions.hpp:84
stdair::ParsingFileFailedException::ParsingFileFailedException
ParsingFileFailedException(const std::string &iWhat)
Definition: stdair_exceptions.hpp:176
stdair::NonInitialisedLogServiceException
Definition: stdair_exceptions.hpp:57
stdair::RootException::what
const char * what() const
Definition: stdair_exceptions.hpp:38
stdair::NonInitialisedDBSessionManagerException
Definition: stdair_exceptions.hpp:188
stdair::CodeConversionException::CodeConversionException
CodeConversionException(const std::string &iWhat)
Definition: stdair_exceptions.hpp:136
stdair::RootException
Root of the stdair exceptions.
Definition: stdair_exceptions.hpp:19
stdair::RootException::RootException
RootException(const std::string &iWhat)
Definition: stdair_exceptions.hpp:24
stdair::KeyNotFoundException::KeyNotFoundException
KeyNotFoundException(const std::string &iWhat)
Definition: stdair_exceptions.hpp:129
stdair::KeyDuplicationException
Definition: stdair_exceptions.hpp:149
stdair::SQLDatabaseConnectionImpossibleException::SQLDatabaseConnectionImpossibleException
SQLDatabaseConnectionImpossibleException(const std::string &iWhat)
Definition: stdair_exceptions.hpp:199
stdair::BookingClassListEmptyInNestingStructException
Definition: stdair_exceptions.hpp:220
stdair::KeyDuplicationException::KeyDuplicationException
KeyDuplicationException(const std::string &iWhat)
Definition: stdair_exceptions.hpp:152
stdair::BookingClassListEmptyInNestingStructException::BookingClassListEmptyInNestingStructException
BookingClassListEmptyInNestingStructException(const std::string &iWhat)
Definition: stdair_exceptions.hpp:223
stdair::MemoryAllocationException::MemoryAllocationException
MemoryAllocationException(const std::string &iWhat)
Definition: stdair_exceptions.hpp:92
stdair::NonInitialisedContainerException::NonInitialisedContainerException
NonInitialisedContainerException(const std::string &iWhat)
Definition: stdair_exceptions.hpp:76
stdair::EventException
Definition: stdair_exceptions.hpp:204
stdair::SQLDatabaseException
Definition: stdair_exceptions.hpp:181
stdair::SQLDatabaseException::SQLDatabaseException
SQLDatabaseException(const std::string &iWhat)
Definition: stdair_exceptions.hpp:184
stdair::SimpleNestingStructException
Definition: stdair_exceptions.hpp:211
stdair::ObjectNotFoundException
Definition: stdair_exceptions.hpp:165
stdair::CodeDuplicationException
Definition: stdair_exceptions.hpp:141
stdair::SQLDatabaseConnectionImpossibleException
Definition: stdair_exceptions.hpp:196
stdair::ParserException
Definition: stdair_exceptions.hpp:112