sbuild  1.7.1
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
sbuild::error_base Class Reference

Error exception base class. More...

#include <error.h>

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

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.
 

Detailed Description

Error exception base class.

Constructor & Destructor Documentation

sbuild::error_base::error_base ( const std::string &  error)
inlineprotected

The constructor.

Parameters
errorthe error message.
sbuild::error_base::error_base ( const std::string &  error,
const std::string &  reason 
)
inlineprotected

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.

Referenced by sbuild::chroot::facet::userdata::set_keyfile().

+ Here is the caller graph for this function:

void sbuild::error_base::set_reason ( const std::string &  reason)
inline
virtual const char* sbuild::error_base::why ( ) const
throw (
)
inlinevirtual

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: