sbuild::error_base Class Reference

Error exception base class. More...

#include <sbuild-error.h>

Inheritance diagram for sbuild::error_base:

Inheritance graph
[legend]
Collaboration diagram for sbuild::error_base:

Collaboration graph
[legend]
List of all members.

Public Member Functions

virtual ~error_base () throw ()
 The destructor.
virtual const char * why () const throw ()
 Get the reason for the error.
std::string const & get_reason () const
 Get the reason for the error.
void set_reason (std::string const &reason)
 Set the reason for the error.

Protected Member Functions

 error_base (std::string const &error)
 The constructor.
 error_base (std::string const &error, std::string const &reason)
 The constructor.

Private Attributes

std::string reason
 The reason for the error.

Detailed Description

Error exception base class.

Definition at line 37 of file sbuild-error.h.


Constructor & Destructor Documentation

sbuild::error_base::error_base ( std::string const &  error  )  [inline, protected]

The constructor.

Parameters:
error the error message.

Definition at line 45 of file sbuild-error.h.

sbuild::error_base::error_base ( std::string const &  error,
std::string const &  reason 
) [inline, protected]

The constructor.

Parameters:
error the error message.
reason further information about the error

Definition at line 57 of file sbuild-error.h.

virtual sbuild::error_base::~error_base (  )  throw () [inline, virtual]

The destructor.

Definition at line 66 of file sbuild-error.h.


Member Function Documentation

virtual const char* sbuild::error_base::why (  )  const throw () [inline, virtual]

Get the reason for the error.

Returns:
the reason.

Definition at line 75 of file sbuild-error.h.

References reason.

Referenced by sbuild::log_exception_error(), and sbuild::log_exception_warning().

Here is the caller graph for this function:

std::string const& sbuild::error_base::get_reason (  )  const [inline]

Get the reason for the error.

Returns:
the reason.

Definition at line 86 of file sbuild-error.h.

References reason.

void sbuild::error_base::set_reason ( std::string const &  reason  )  [inline]

Set the reason for the error.

Parameters:
reason further information about the error

Definition at line 97 of file sbuild-error.h.

Referenced by sbuild::chroot_config::add(), and sbuild::keyfile::check_priority().

Here is the caller graph for this function:


Member Data Documentation

std::string sbuild::error_base::reason [private]

The reason for the error.

Definition at line 104 of file sbuild-error.h.

Referenced by get_reason(), and why().


The documentation for this class was generated from the following file:
Generated on Sat Jan 27 16:14:08 2007 for schroot by  doxygen 1.5.1