include/xapian/errordispatch.h

Go to the documentation of this file.
00001 /* Warning: This file is generated by ./generate-exceptions - do not modify directly! */
00002 /* Copyright (C) 2003,2004,2006,2007 Olly Betts
00003  *
00004  * This program is free software; you can redistribute it and/or
00005  * modify it under the terms of the GNU General Public License as
00006  * published by the Free Software Foundation; either version 2 of the
00007  * License, or (at your option) any later version.
00008  *
00009  * This program is distributed in the hope that it will be useful,
00010  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012  * GNU General Public License for more details.
00013  *
00014  * You should have received a copy of the GNU General Public License
00015  * along with this program; if not, write to the Free Software
00016  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
00017  */
00018 
00019 /* Note that this file isn't an external header - it's located in
00020  * include/xapian in the source tree because it's generated so this
00021  * is the simplest way to make inclusion work in a VPATH build.
00022  */
00023 
00024 // DOXYGEN gets confused by this header-with-code.
00025 #ifndef DOXYGEN
00026 if (type == "AssertionError") throw Xapian::AssertionError(msg, context, error_string);
00027 if (type == "InvalidArgumentError") throw Xapian::InvalidArgumentError(msg, context, error_string);
00028 if (type == "InvalidOperationError") throw Xapian::InvalidOperationError(msg, context, error_string);
00029 if (type == "UnimplementedError") throw Xapian::UnimplementedError(msg, context, error_string);
00030 if (type == "DatabaseError") throw Xapian::DatabaseError(msg, context, error_string);
00031 if (type == "DatabaseCorruptError") throw Xapian::DatabaseCorruptError(msg, context, error_string);
00032 if (type == "DatabaseCreateError") throw Xapian::DatabaseCreateError(msg, context, error_string);
00033 if (type == "DatabaseLockError") throw Xapian::DatabaseLockError(msg, context, error_string);
00034 if (type == "DatabaseModifiedError") throw Xapian::DatabaseModifiedError(msg, context, error_string);
00035 if (type == "DatabaseOpeningError") throw Xapian::DatabaseOpeningError(msg, context, error_string);
00036 if (type == "DatabaseVersionError") throw Xapian::DatabaseVersionError(msg, context, error_string);
00037 if (type == "DocNotFoundError") throw Xapian::DocNotFoundError(msg, context, error_string);
00038 if (type == "FeatureUnavailableError") throw Xapian::FeatureUnavailableError(msg, context, error_string);
00039 if (type == "InternalError") throw Xapian::InternalError(msg, context, error_string);
00040 if (type == "NetworkError") throw Xapian::NetworkError(msg, context, error_string);
00041 if (type == "NetworkTimeoutError") throw Xapian::NetworkTimeoutError(msg, context, error_string);
00042 if (type == "QueryParserError") throw Xapian::QueryParserError(msg, context, error_string);
00043 if (type == "RangeError") throw Xapian::RangeError(msg, context, error_string);
00044 #endif /* DOXYGEN */

Documentation for Xapian (version 1.0.10).
Generated on 24 Dec 2008 by Doxygen 1.5.2.