sbuild  1.4.26
Public Member Functions | Protected Member Functions | Private Attributes
sbuild::error_base Class Reference

Error exception base class. More...

#include <sbuild-error.h>

+ Inheritance diagram for sbuild::error_base:
+ Collaboration diagram for sbuild::error_base:

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.


Constructor & Destructor Documentation

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

The constructor.

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

The constructor.

Parameters:
errorthe error message.
reasonfurther information about the error

Member Function Documentation

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

Get the reason for the error.

Returns:
the reason.

References reason.

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

Set the reason for the error.

Parameters:
reasonfurther information about the error

References reason.

Referenced by sbuild::chroot_config::add(), sbuild::basic_keyfile< K, P >::check_keys(), sbuild::basic_keyfile< K, P >::check_priority(), sbuild::chroot::set_aliases(), sbuild::personality::set_name(), and sbuild::chroot::set_name().

+ Here is the caller graph for this function:

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

Get the reason for the error.

Returns:
the reason.

References reason.

Referenced by sbuild::error< T >::add_reason_helper< A, true >::add_reason_helper().

+ Here is the caller graph for this function:


The documentation for this class was generated from the following file: