senf::ExceptionMixin Class Reference
[Exception classes]

Generic extensible exception mixin. More...

#include <senf/Utils/Exception.hh>

Inheritance diagram for senf::ExceptionMixin:
Inheritance graph
[legend]

List of all members.


Detailed Description

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 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_

Constructor & Destructor Documentation

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.


Member Function Documentation

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.


Member Data Documentation

std::string senf::ExceptionMixin::what_
[protected]

Definition at line 158 of file Exception.hh.


The documentation for this class was generated from the following files: