Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

include/xapian/errortypes.h File Reference

Exception subclasses. More...

Go to the source code of this file.

Functions

 DEFINE_ERROR_BASECLASS (LogicError, Error)
 Base class for errors due to programming errors. More...

 DEFINE_ERROR_BASECLASS (RuntimeError, Error)
 Base class for errors due to run time problems. More...

 DEFINE_ERROR_CLASS (AssertionError, LogicError)
 Thrown if an internal consistency check fails. More...

 DEFINE_ERROR_CLASS (UnimplementedError, LogicError)
 Thrown when an attempt to use an unimplemented feature is made. More...

 DEFINE_ERROR_CLASS (InvalidArgumentError, LogicError)
 Thrown when an invalid argument is supplied to the API. More...

 DEFINE_ERROR_CLASS (DocNotFoundError, RuntimeError)
 Thrown when an attempt is made to access a document which is not in the database. More...

 DEFINE_ERROR_CLASS (RangeError, RuntimeError)
 thrown when an element is out of range. More...

 DEFINE_ERROR_CLASS (InternalError, RuntimeError)
 thrown when really weird stuff happens. More...

 DEFINE_ERROR_CLASS (FeatureUnavailableError, RuntimeError)
 Thrown if a feature is unavailable - usually due to not being compiled in. More...

 DEFINE_ERROR_CLASS (NetworkError, RuntimeError)
 thrown when there is a communications problem with a remote database. More...

 DEFINE_ERROR_CLASS (NetworkTimeoutError, NetworkError)
 Thrown when a network timeout is exceeded. More...

 DEFINE_ERROR_CLASS (DatabaseCorruptError, DatabaseError)
 thrown if the database is corrupt. More...

 DEFINE_ERROR_CLASS (TypeError, RuntimeError)
 Thrown in the indexing system when a type mismatch occurs. More...


Detailed Description

Exception subclasses.


Function Documentation

DEFINE_ERROR_BASECLASS RuntimeError   ,
Error   
 

Base class for errors due to run time problems.

An exception derived from RuntimeError is thrown when an error is caused by problems with the data or environment rather than a programming mistake.

DEFINE_ERROR_BASECLASS LogicError   ,
Error   
 

Base class for errors due to programming errors.

An exception derived from LogicError is thrown when a misuse of the API is detected.

DEFINE_ERROR_CLASS TypeError   ,
RuntimeError   
 

Thrown in the indexing system when a type mismatch occurs.

DEFINE_ERROR_CLASS DatabaseModifiedError   ,
DatabaseError   
 

thrown if the database is corrupt.

DEFINE_ERROR_CLASS NetworkTimeoutError   ,
NetworkError   
 

Thrown when a network timeout is exceeded.

DEFINE_ERROR_CLASS NetworkError   ,
RuntimeError   
 

thrown when there is a communications problem with a remote database.

DEFINE_ERROR_CLASS FeatureUnavailableError   ,
RuntimeError   
 

Thrown if a feature is unavailable - usually due to not being compiled in.

DEFINE_ERROR_CLASS InternalError   ,
RuntimeError   
 

thrown when really weird stuff happens.

If this is thrown something has gone badly wrong.

DEFINE_ERROR_CLASS RangeError   ,
RuntimeError   
 

thrown when an element is out of range.

DEFINE_ERROR_CLASS DocNotFoundError   ,
RuntimeError   
 

Thrown when an attempt is made to access a document which is not in the database.

This could occur either due to a programming error, or because the database has changed since running the query.

DEFINE_ERROR_CLASS InvalidOperationError   ,
LogicError   
 

Thrown when an invalid argument is supplied to the API.

DEFINE_ERROR_CLASS UnimplementedError   ,
LogicError   
 

Thrown when an attempt to use an unimplemented feature is made.

DEFINE_ERROR_CLASS AssertionError   ,
LogicError   
 

Thrown if an internal consistency check fails.

This represents a bug in Xapian.


Documentation for Xapian (version 0.6.5).
Generated on 4 Jul 2003 by Doxygen 1.2.15.