Generic extensible exception mixin. More...
#include <senf/Utils/Exception.hh>
Public Member Functions | |
std::string | message () const |
get exception description More... | |
std::string | backtrace () const |
Return backtrace (if available) More... | |
void | append (std::string text) |
Extend exception description. More... | |
Protected Member Functions | |
ExceptionMixin (std::string const &description="") | |
Initialize exception with string. More... | |
Protected Attributes | |
std::string | what_ |
Generic extensible exception mixin.
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 129 of file Exception.hh.
|
explicitprotected |
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.
void senf::ExceptionMixin::append | ( | std::string | text | ) |
Extend exception description.
Adds text to the description text.
std::string senf::ExceptionMixin::backtrace | ( | ) | const |
Return backtrace (if available)
std::string senf::ExceptionMixin::message | ( | ) | const |
get exception description
|
protected |
Definition at line 145 of file Exception.hh.