sbuild
1.6.10
|
Error exception base class. More...
#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. More... | |
std::string const & | get_reason () const |
Get the reason for the error. More... | |
void | set_reason (std::string const &reason) |
Set the reason for the error. More... | |
Protected Member Functions | |
error_base (std::string const &error) | |
The constructor. More... | |
error_base (std::string const &error, std::string const &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::set_keyfile().
|
inline |
Set the reason for the error.
reason | further information about the error |
References reason.
Referenced by sbuild::chroot_config::add(), sbuild::session::run_child(), sbuild::chroot::set_aliases(), sbuild::chroot_facet_userdata::set_data(), sbuild::chroot::set_keyfile(), sbuild::personality::set_name(), sbuild::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().