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

OmError Class Reference

Base class for all errors reported. More...

#include <omerror.h>

List of all members.

Public Methods

std::string get_msg () const
 Return a message describing the error. More...

std::string get_type () const
 Return the type of the error. More...

std::string get_context () const
 Get the context of the error. More...

int get_errno () const
 Get the errno value associated with the error (or 0 if none). More...

virtual ~OmError ()
 Instantiations of OmError (as opposed to subclasses) are forbidden. More...


Protected Methods

 OmError (const std::string &msg_, const std::string &context_, const std::string &type_, int errno_value_)
 Constructors are protected, since they can only be used by derived classes anyway. More...

 OmError (const OmError &copyme)

Friends

class OmErrorHandler


Detailed Description

Base class for all errors reported.


Constructor & Destructor Documentation

OmError::OmError const std::string &    msg_,
const std::string &    context_,
const std::string &    type_,
int    errno_value_
[protected]
 

Constructors are protected, since they can only be used by derived classes anyway.

OmError::~OmError   [inline, virtual]
 

Instantiations of OmError (as opposed to subclasses) are forbidden.


Member Function Documentation

std::string OmError::get_context   const [inline]
 

Get the context of the error.

int OmError::get_errno   const [inline]
 

Get the errno value associated with the error (or 0 if none).

std::string OmError::get_msg   const [inline]
 

Return a message describing the error.

This is in a human readable form.

std::string OmError::get_type   const [inline]
 

Return the type of the error.


The documentation for this class was generated from the following file:
Documentation for Xapian (version 0.4.1cvs).
Generated on 20 Sep 2002 by Doxygen 1.2.15.