#include <senf/Utils/Exception.hh>

ExceptionMixin is a generic exception mixin which allows the exception to be later extended by catching and re-throwing it (See example in Exception classes).
Definition at line 141 of file Exception.hh.
Public Member Functions |
|
| std::string | message () const |
| get exception description |
|
| std::string | backtrace () const |
| Return backtrace (if available). |
|
| void | append (std::string text) |
| Extend exception description. |
|
Protected Member Functions |
|
| ExceptionMixin (std::string const &description="") | |
| Initialize exception with string. |
|
Protected Attributes |
|
| std::string | what_ |
| senf::ExceptionMixin:: | ||||
| ExceptionMixin | ( | std::string const & |
description = ""
|
) |
Initialize exception with string.
description is the initial error description string. This should probably be a string constant describing the exception for most derived exceptions.
Definition at line 33 of file Exception.cci.
| void senf::ExceptionMixin:: | ||||
| append | ( | std::string | text | ) |
Extend exception description.
Adds text to the description text.
Definition at line 61 of file Exception.cci.
| std::string senf::ExceptionMixin:: | ||||
| backtrace | () | |||
Return backtrace (if available).
Definition at line 51 of file Exception.cci.
| std::string senf::ExceptionMixin:: | ||||
| message | () | |||
get exception description
Definition at line 41 of file Exception.cci.
| std::string senf::ExceptionMixin::what_ | ||||
| [protected] | ||||
Definition at line 158 of file Exception.hh.