xapian-core  1.4.26
errordispatch.h
Go to the documentation of this file.
1 /* Warning: This file is generated by ./generate-exceptions - do not modify directly! */
2 /* Copyright (C) 2003,2004,2006,2007,2008,2009,2011,2015,2019 Olly Betts
3  * Copyright (C) 2007 Richard Boulton
4  *
5  * This program is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU General Public License as
7  * published by the Free Software Foundation; either version 2 of the
8  * License, or (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18  */
19 
20 /* Note that this file isn't an external header - it's located in
21  * include/xapian in the source tree because it's generated so this
22  * is the simplest way to make inclusion work in a VPATH build.
23  */
24 
25 // DOXYGEN gets confused by this header-with-code.
26 #ifndef DOXYGEN
27 case '\000': throw Xapian::AssertionError(msg, context, error_string);
28 case '\001': throw Xapian::InvalidArgumentError(msg, context, error_string);
29 case '\002': throw Xapian::InvalidOperationError(msg, context, error_string);
30 case '\003': throw Xapian::UnimplementedError(msg, context, error_string);
31 case '\004': throw Xapian::DatabaseError(msg, context, error_string);
32 case '\005': throw Xapian::DatabaseCorruptError(msg, context, error_string);
33 case '\006': throw Xapian::DatabaseCreateError(msg, context, error_string);
34 case '\007': throw Xapian::DatabaseLockError(msg, context, error_string);
35 case '\010': throw Xapian::DatabaseModifiedError(msg, context, error_string);
36 case '\011': throw Xapian::DatabaseOpeningError(msg, context, error_string);
37 case '\012': throw Xapian::DatabaseVersionError(msg, context, error_string);
38 case '\013': throw Xapian::DocNotFoundError(msg, context, error_string);
39 case '\014': throw Xapian::FeatureUnavailableError(msg, context, error_string);
40 case '\015': throw Xapian::InternalError(msg, context, error_string);
41 case '\016': throw Xapian::NetworkError(msg, context, error_string);
42 case '\017': throw Xapian::NetworkTimeoutError(msg, context, error_string);
43 case '\020': throw Xapian::QueryParserError(msg, context, error_string);
44 case '\021': throw Xapian::SerialisationError(msg, context, error_string);
45 case '\022': throw Xapian::RangeError(msg, context, error_string);
46 case '\023': throw Xapian::WildcardError(msg, context, error_string);
47 case '\024': throw Xapian::DatabaseNotFoundError(msg, context, error_string);
48 case '\025': throw Xapian::DatabaseClosedError(msg, context, error_string);
49 #endif /* DOXYGEN */
Indicates an attempt to access a closed database.
Definition: error.h:1097
InvalidOperationError indicates the API was used in an invalid way.
Definition: error.h:283
DatabaseOpeningError indicates failure to open a database.
Definition: error.h:581
Indicates a timeout expired while communicating with a remote database.
Definition: error.h:845
WildcardError indicates an error expanding a wildcarded query.
Definition: error.h:1013
Indicates a query string can't be parsed.
Definition: error.h:887
AssertionError is thrown if a logical assertion inside Xapian fails.
Definition: error.h:199
RangeError indicates an attempt to access outside the bounds of a container.
Definition: error.h:971
InvalidArgumentError indicates an invalid parameter value was passed to the API.
Definition: error.h:241
DatabaseModifiedError indicates a database was modified.
Definition: error.h:539
DatabaseLockError indicates failure to lock a database.
Definition: error.h:493
Indicates an error in the std::string serialisation of an object.
Definition: error.h:929
Indicates an attempt to use a feature which is unavailable.
Definition: error.h:719
DatabaseCreateError indicates a failure to create a database.
Definition: error.h:451
Indicates an attempt to access a database not present.
Definition: error.h:1055
Indicates an attempt to access a document not present in the database.
Definition: error.h:674
DatabaseVersionError indicates that a database is in an unsupported format.
Definition: error.h:632
DatabaseCorruptError indicates database corruption was detected.
Definition: error.h:409
InternalError indicates a runtime problem of some sort.
Definition: error.h:761
Indicates a problem communicating with a remote database.
Definition: error.h:803
DatabaseError indicates some sort of database related error.
Definition: error.h:367
UnimplementedError indicates an attempt to use an unimplemented feature.
Definition: error.h:325