sbuild
1.7.1
|
Error exception base class. More...
#include <error.h>
Public Member Functions | |
virtual | ~error_base () throw () |
The destructor. | |
virtual const char * | why () const throw () |
Get the reason for the error. More... | |
std::string const & | get_reason () const |
Get the reason for the error. More... | |
void | set_reason (const std::string &reason) |
Set the reason for the error. More... | |
Protected Member Functions | |
error_base (const std::string &error) | |
The constructor. More... | |
error_base (const std::string &error, const std::string &reason) | |
The constructor. More... | |
Private Attributes | |
std::string | reason |
The reason for the error. | |
Error exception base class.
|
inlineprotected |
The constructor.
error | the error message. |
|
inlineprotected |
The constructor.
error | the error message. |
reason | further information about the error |
|
inline |
Get the reason for the error.
References reason.
Referenced by sbuild::chroot::facet::userdata::set_keyfile().
|
inline |
Set the reason for the error.
reason | further information about the error |
References reason.
Referenced by sbuild::chroot::config::add(), sbuild::keyfile::check_keys(), sbuild::keyfile::check_priority(), sbuild::session::run_child(), sbuild::chroot::chroot::set_aliases(), sbuild::chroot::facet::userdata::set_data(), sbuild::chroot::facet::userdata::set_keyfile(), sbuild::personality::set_name(), sbuild::chroot::chroot::set_name(), sbuild::chroot::facet::userdata::set_system_data(), and sbuild::chroot::facet::userdata::setup_env().
|
inlinevirtual |
Get the reason for the error.
References reason.
Referenced by sbuild::error< T >::add_reason_helper< A, true >::add_reason_helper().