0.08.01
C++ Open Travel Request Parsing Library
Toggle main menu visibility
Loading...
Searching...
No Matches
OPENTREP_exceptions.hpp
Go to the documentation of this file.
1
#ifndef __OPENTREP_OPENTREP_EXCEPTIONS_HPP
2
#define __OPENTREP_OPENTREP_EXCEPTIONS_HPP
3
4
// //////////////////////////////////////////////////////////////////////
5
// Import section
6
// //////////////////////////////////////////////////////////////////////
7
// STL
8
#include <exception>
9
10
namespace
OPENTREP
{
11
12
// ///////// Exceptions ///////////
20
class
RootException
:
public
std::exception {
21
public
:
25
RootException
(
const
std::string& iWhat) :
_what
(iWhat) {}
29
RootException
() :
_what
(
"No further details"
) {}
30
34
virtual
~RootException
() throw() {}
35
39
const
char
*
what
()
const
throw() {
40
return
_what
.c_str();
41
}
42
43
protected
:
47
std::string
_what
;
48
};
49
53
class
NonInitialisedServiceException
:
public
RootException
{
54
public
:
58
NonInitialisedServiceException
(
const
std::string& iWhat)
59
:
RootException
(iWhat) {}
60
};
61
65
class
UnicodeException
:
public
RootException
{
66
public
:
70
UnicodeException
(
const
std::string& iWhat) :
RootException
(iWhat) {}
71
};
72
76
class
UnicodeTransliteratorCreationException
:
public
UnicodeException
{
77
public
:
81
UnicodeTransliteratorCreationException
(
const
std::string& iWhat)
82
:
UnicodeException
(iWhat) {}
83
};
84
88
class
MultipleRowsForASingleDocIDException
:
public
RootException
{
89
public
:
93
MultipleRowsForASingleDocIDException
(
const
std::string& iWhat)
94
:
RootException
(iWhat) {}
95
};
96
100
class
LanguageCodeNotDefinedInNameTableException
:
public
RootException
{
101
public
:
105
LanguageCodeNotDefinedInNameTableException
(
const
std::string& iWhat)
106
:
RootException
(iWhat) {}
107
};
108
112
class
MemoryAllocationException
:
public
RootException
{
113
public
:
117
MemoryAllocationException
(
const
std::string& iWhat) :
RootException
(iWhat) {}
118
};
119
123
class
ObjectNotFoundException
:
public
RootException
{
124
public
:
128
ObjectNotFoundException
(
const
std::string& iWhat) :
RootException
(iWhat) {}
129
};
130
134
class
FileException
:
public
RootException
{
135
public
:
139
FileException
(
const
std::string& iWhat) :
RootException
(iWhat) {}
140
};
141
145
class
FileNotFoundException
:
public
FileException
{
146
public
:
150
FileNotFoundException
(
const
std::string& iWhat) :
FileException
(iWhat) {}
151
};
152
156
class
FileExtensionUnknownException
:
public
FileException
{
157
public
:
161
FileExtensionUnknownException
(
const
std::string& iWhat)
162
:
FileException
(iWhat) {}
163
};
164
168
class
FileUncompressingErrorException
:
public
FileException
{
169
public
:
173
FileUncompressingErrorException
(
const
std::string& iWhat)
174
:
FileException
(iWhat) {}
175
};
176
180
class
SerDeException
:
public
RootException
{
181
public
:
185
SerDeException
(
const
std::string& iWhat) :
RootException
(iWhat) {}
186
};
187
191
class
ParserException
:
public
RootException
{
192
public
:
196
ParserException
(
const
std::string& iWhat) :
RootException
(iWhat) {}
197
};
198
202
class
PorFileParsingException
:
public
ParserException
{
203
public
:
207
PorFileParsingException
(
const
std::string& iWhat)
208
:
ParserException
(iWhat) {}
209
};
210
214
class
PRFileParsingException
:
public
ParserException
{
215
public
:
219
PRFileParsingException
(
const
std::string& iWhat)
220
:
ParserException
(iWhat) {}
221
};
222
226
class
CodeConversionException
:
public
ParserException
{
227
public
:
231
CodeConversionException
(
const
std::string& iWhat)
232
:
ParserException
(iWhat) {}
233
};
234
238
class
CodeDuplicationException
:
public
ParserException
{
239
public
:
243
CodeDuplicationException
(
const
std::string& iWhat)
244
:
ParserException
(iWhat) {}
245
};
246
250
class
XapianException
:
public
RootException
{
251
public
:
255
XapianException
(
const
std::string& iWhat) :
RootException
(iWhat) {}
256
};
257
261
class
DocumentNotFoundException
:
public
XapianException
{
262
public
:
266
DocumentNotFoundException
(
const
std::string& iWhat)
267
:
XapianException
(iWhat) {}
268
};
269
273
class
XapianDatabaseFailureException
:
public
XapianException
{
274
public
:
278
XapianDatabaseFailureException
(
const
std::string& iWhat)
279
:
XapianException
(iWhat) {}
280
};
281
285
class
XapianTravelDatabaseEmptyException
:
public
XapianException
{
286
public
:
290
XapianTravelDatabaseEmptyException
(
const
std::string& iWhat)
291
:
XapianException
(iWhat) {}
292
};
293
297
class
XapianTravelDatabaseWrongPathnameException
:
public
XapianException
{
298
public
:
302
XapianTravelDatabaseWrongPathnameException
(
const
std::string& iWhat)
303
:
XapianException
(iWhat) {}
304
};
305
309
class
NoBestMatchingResultHolderException
:
public
RootException
{
310
public
:
314
NoBestMatchingResultHolderException
(
const
std::string& iWhat)
315
:
RootException
(iWhat) {}
316
};
317
321
class
SQLDatabaseException
:
public
RootException
{
322
public
:
326
SQLDatabaseException
(
const
std::string& iWhat) :
RootException
(iWhat) {}
327
};
328
332
class
SQLDatabaseConnectionStringParsingException
333
:
public
SQLDatabaseException
{
334
public
:
338
SQLDatabaseConnectionStringParsingException
(
const
std::string& iWhat)
339
:
SQLDatabaseException
(iWhat) {}
340
};
341
345
class
SQLDatabaseImpossibleConnectionException
:
public
SQLDatabaseException
{
346
public
:
350
SQLDatabaseImpossibleConnectionException
(
const
std::string& iWhat)
351
:
SQLDatabaseException
(iWhat) {}
352
};
353
357
class
SQLDatabaseConnectionReleaseException
:
public
SQLDatabaseException
{
358
public
:
362
SQLDatabaseConnectionReleaseException
(
const
std::string& iWhat)
363
:
SQLDatabaseException
(iWhat) {}
364
};
365
369
class
SQLDatabaseFileCannotBeCreatedException
:
public
SQLDatabaseException
{
370
public
:
374
SQLDatabaseFileCannotBeCreatedException
(
const
std::string& iWhat)
375
:
SQLDatabaseException
(iWhat) {}
376
};
377
381
class
SQLDatabaseElementNotFoundException
:
public
SQLDatabaseException
{
382
public
:
386
SQLDatabaseElementNotFoundException
(
const
std::string& iWhat)
387
:
SQLDatabaseException
(iWhat) {}
388
};
389
393
class
SQLDatabaseUserCreationException
:
public
SQLDatabaseException
{
394
public
:
398
SQLDatabaseUserCreationException
(
const
std::string& iWhat)
399
:
SQLDatabaseException
(iWhat) {}
400
};
401
405
class
SQLDatabaseTableCreationException
:
public
SQLDatabaseException
{
406
public
:
410
SQLDatabaseTableCreationException
(
const
std::string& iWhat)
411
:
SQLDatabaseException
(iWhat) {}
412
};
413
417
class
SQLDatabaseIndexCreationException
:
public
SQLDatabaseException
{
418
public
:
422
SQLDatabaseIndexCreationException
(
const
std::string& iWhat)
423
:
SQLDatabaseException
(iWhat) {}
424
};
425
429
class
BuildIndexException
:
public
RootException
{
430
public
:
434
BuildIndexException
(
const
std::string& iWhat) :
RootException
(iWhat) {}
435
};
436
440
class
InterpreterUseCaseException
:
public
RootException
{
441
public
:
445
InterpreterUseCaseException
(
const
std::string& iWhat)
446
:
RootException
(iWhat) {}
447
};
448
452
class
InterpreteTravelRequestException
:
public
InterpreterUseCaseException
{
453
public
:
457
InterpreteTravelRequestException
(
const
std::string& iWhat)
458
:
InterpreterUseCaseException
(iWhat) {}
459
};
460
464
class
TravelRequestEmptyException
:
public
InterpreterUseCaseException
{
465
public
:
469
TravelRequestEmptyException
(
const
std::string& iWhat)
470
:
InterpreterUseCaseException
(iWhat) {}
471
};
472
473
}
474
#endif
// __OPENTREP_OPENTREP_EXCEPTIONS_HPP
OPENTREP::BuildIndexException::BuildIndexException
BuildIndexException(const std::string &iWhat)
Definition
OPENTREP_exceptions.hpp:434
OPENTREP::CodeConversionException::CodeConversionException
CodeConversionException(const std::string &iWhat)
Definition
OPENTREP_exceptions.hpp:231
OPENTREP::CodeDuplicationException::CodeDuplicationException
CodeDuplicationException(const std::string &iWhat)
Definition
OPENTREP_exceptions.hpp:243
OPENTREP::DocumentNotFoundException::DocumentNotFoundException
DocumentNotFoundException(const std::string &iWhat)
Definition
OPENTREP_exceptions.hpp:266
OPENTREP::FileException::FileException
FileException(const std::string &iWhat)
Definition
OPENTREP_exceptions.hpp:139
OPENTREP::FileExtensionUnknownException::FileExtensionUnknownException
FileExtensionUnknownException(const std::string &iWhat)
Definition
OPENTREP_exceptions.hpp:161
OPENTREP::FileNotFoundException::FileNotFoundException
FileNotFoundException(const std::string &iWhat)
Definition
OPENTREP_exceptions.hpp:150
OPENTREP::FileUncompressingErrorException::FileUncompressingErrorException
FileUncompressingErrorException(const std::string &iWhat)
Definition
OPENTREP_exceptions.hpp:173
OPENTREP::InterpreteTravelRequestException::InterpreteTravelRequestException
InterpreteTravelRequestException(const std::string &iWhat)
Definition
OPENTREP_exceptions.hpp:457
OPENTREP::InterpreterUseCaseException::InterpreterUseCaseException
InterpreterUseCaseException(const std::string &iWhat)
Definition
OPENTREP_exceptions.hpp:445
OPENTREP::LanguageCodeNotDefinedInNameTableException::LanguageCodeNotDefinedInNameTableException
LanguageCodeNotDefinedInNameTableException(const std::string &iWhat)
Definition
OPENTREP_exceptions.hpp:105
OPENTREP::MemoryAllocationException::MemoryAllocationException
MemoryAllocationException(const std::string &iWhat)
Definition
OPENTREP_exceptions.hpp:117
OPENTREP::MultipleRowsForASingleDocIDException::MultipleRowsForASingleDocIDException
MultipleRowsForASingleDocIDException(const std::string &iWhat)
Definition
OPENTREP_exceptions.hpp:93
OPENTREP::NoBestMatchingResultHolderException::NoBestMatchingResultHolderException
NoBestMatchingResultHolderException(const std::string &iWhat)
Definition
OPENTREP_exceptions.hpp:314
OPENTREP::NonInitialisedServiceException::NonInitialisedServiceException
NonInitialisedServiceException(const std::string &iWhat)
Definition
OPENTREP_exceptions.hpp:58
OPENTREP::ObjectNotFoundException::ObjectNotFoundException
ObjectNotFoundException(const std::string &iWhat)
Definition
OPENTREP_exceptions.hpp:128
OPENTREP::PRFileParsingException::PRFileParsingException
PRFileParsingException(const std::string &iWhat)
Definition
OPENTREP_exceptions.hpp:219
OPENTREP::ParserException::ParserException
ParserException(const std::string &iWhat)
Definition
OPENTREP_exceptions.hpp:196
OPENTREP::PorFileParsingException::PorFileParsingException
PorFileParsingException(const std::string &iWhat)
Definition
OPENTREP_exceptions.hpp:207
OPENTREP::RootException::RootException
RootException()
Definition
OPENTREP_exceptions.hpp:29
OPENTREP::RootException::RootException
RootException(const std::string &iWhat)
Definition
OPENTREP_exceptions.hpp:25
OPENTREP::RootException::what
const char * what() const
Definition
OPENTREP_exceptions.hpp:39
OPENTREP::RootException::_what
std::string _what
Definition
OPENTREP_exceptions.hpp:47
OPENTREP::RootException::~RootException
virtual ~RootException()
Definition
OPENTREP_exceptions.hpp:34
OPENTREP::SQLDatabaseConnectionReleaseException::SQLDatabaseConnectionReleaseException
SQLDatabaseConnectionReleaseException(const std::string &iWhat)
Definition
OPENTREP_exceptions.hpp:362
OPENTREP::SQLDatabaseConnectionStringParsingException::SQLDatabaseConnectionStringParsingException
SQLDatabaseConnectionStringParsingException(const std::string &iWhat)
Definition
OPENTREP_exceptions.hpp:338
OPENTREP::SQLDatabaseElementNotFoundException::SQLDatabaseElementNotFoundException
SQLDatabaseElementNotFoundException(const std::string &iWhat)
Definition
OPENTREP_exceptions.hpp:386
OPENTREP::SQLDatabaseException::SQLDatabaseException
SQLDatabaseException(const std::string &iWhat)
Definition
OPENTREP_exceptions.hpp:326
OPENTREP::SQLDatabaseFileCannotBeCreatedException::SQLDatabaseFileCannotBeCreatedException
SQLDatabaseFileCannotBeCreatedException(const std::string &iWhat)
Definition
OPENTREP_exceptions.hpp:374
OPENTREP::SQLDatabaseImpossibleConnectionException::SQLDatabaseImpossibleConnectionException
SQLDatabaseImpossibleConnectionException(const std::string &iWhat)
Definition
OPENTREP_exceptions.hpp:350
OPENTREP::SQLDatabaseIndexCreationException::SQLDatabaseIndexCreationException
SQLDatabaseIndexCreationException(const std::string &iWhat)
Definition
OPENTREP_exceptions.hpp:422
OPENTREP::SQLDatabaseTableCreationException::SQLDatabaseTableCreationException
SQLDatabaseTableCreationException(const std::string &iWhat)
Definition
OPENTREP_exceptions.hpp:410
OPENTREP::SQLDatabaseUserCreationException::SQLDatabaseUserCreationException
SQLDatabaseUserCreationException(const std::string &iWhat)
Definition
OPENTREP_exceptions.hpp:398
OPENTREP::SerDeException::SerDeException
SerDeException(const std::string &iWhat)
Definition
OPENTREP_exceptions.hpp:185
OPENTREP::TravelRequestEmptyException::TravelRequestEmptyException
TravelRequestEmptyException(const std::string &iWhat)
Definition
OPENTREP_exceptions.hpp:469
OPENTREP::UnicodeException::UnicodeException
UnicodeException(const std::string &iWhat)
Definition
OPENTREP_exceptions.hpp:70
OPENTREP::UnicodeTransliteratorCreationException::UnicodeTransliteratorCreationException
UnicodeTransliteratorCreationException(const std::string &iWhat)
Definition
OPENTREP_exceptions.hpp:81
OPENTREP::XapianDatabaseFailureException::XapianDatabaseFailureException
XapianDatabaseFailureException(const std::string &iWhat)
Definition
OPENTREP_exceptions.hpp:278
OPENTREP::XapianException::XapianException
XapianException(const std::string &iWhat)
Definition
OPENTREP_exceptions.hpp:255
OPENTREP::XapianTravelDatabaseEmptyException::XapianTravelDatabaseEmptyException
XapianTravelDatabaseEmptyException(const std::string &iWhat)
Definition
OPENTREP_exceptions.hpp:290
OPENTREP::XapianTravelDatabaseWrongPathnameException::XapianTravelDatabaseWrongPathnameException
XapianTravelDatabaseWrongPathnameException(const std::string &iWhat)
Definition
OPENTREP_exceptions.hpp:302
OPENTREP
Definition
BasChronometer.cpp:10
Generated on
for OpenTREP by
1.17.0