include/xapian/error.h File Reference

Hierarchy of classes which Xapian can throw as exceptions. More...

#include <string>
#include <xapian/errortypes.h>

Include dependency graph for error.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  Xapian

Classes

class  Xapian::Error
 All exceptions thrown by Xapian are subclasses of Xapian::Error. More...

Defines

#define XAPIAN_EXCEPTION_EXPORT
#define XAPIAN_DEFINE_ERROR_BASECLASS(CLASS, PARENT)
 

For internal use only.

Macro to define an abstract Xapian::Error subclass.


#define XAPIAN_DEFINE_ERROR_CLASS(CLASS, PARENT)
 

For internal use only.

Macro to define a concrete Xapian::Error subclass.



Detailed Description

Hierarchy of classes which Xapian can throw as exceptions.


Define Documentation

#define XAPIAN_DEFINE_ERROR_BASECLASS CLASS,
PARENT   ) 
 

Value:

class XAPIAN_EXCEPTION_EXPORT CLASS : public PARENT { \
  protected: \ \
    CLASS(const std::string &msg_, const std::string &context_, \
          const char * type_, int errno_) \
        : PARENT(msg_, context_, type_, errno_) {} \
}

For internal use only.

Macro to define an abstract Xapian::Error subclass.

#define XAPIAN_DEFINE_ERROR_CLASS CLASS,
PARENT   ) 
 

Value:

class XAPIAN_EXCEPTION_EXPORT CLASS : public PARENT { \
  public: \ \
    CLASS(const std::string &msg_, const std::string &context_ = "", \
          int errno_ = 0) \
        : PARENT(msg_, context_, #CLASS, errno_) {} \ \
    CLASS(const std::string &msg_, int errno_) \
        : PARENT(msg_, "", #CLASS, errno_) {} \
  protected: \ \
    CLASS(const std::string &msg_, const std::string &context_, \
          const char * type_, int errno_) \
        : PARENT(msg_, context_, type_, errno_) {} \
}

For internal use only.

Macro to define a concrete Xapian::Error subclass.


Documentation for Xapian (version 0.9.10).
Generated on 6 Mar 2007 by Doxygen 1.4.6.