#include <sbuild-error.h>
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. |
sbuild::error_base::error_base | ( | std::string const & | error | ) | [inline, protected] |
sbuild::error_base::error_base | ( | std::string const & | error, | |
std::string const & | reason | |||
) | [inline, protected] |
virtual sbuild::error_base::~error_base | ( | ) | throw () [inline, virtual] |
The destructor.
virtual const char* sbuild::error_base::why | ( | ) | const throw () [inline, virtual] |
Get the reason for the error.
References reason.
Referenced by sbuild::error< T >::sbuild::error::add_reason_helper< A, true >::add_reason_helper(), sbuild::log_ctty_exception_error(), sbuild::log_ctty_exception_warning(), sbuild::log_exception_error(), and sbuild::log_exception_warning().
std::string const& sbuild::error_base::get_reason | ( | ) | const [inline] |
void sbuild::error_base::set_reason | ( | std::string const & | reason | ) | [inline] |
Set the reason for the error.
reason | further information about the error |
Referenced by sbuild::chroot_config::add().
std::string sbuild::error_base::reason [private] |