Extensible exception base-class. More...

#include <senf/Utils/Exception.hh>

Inheritance diagram for senf::Exception:

Public Member Functions

virtual ~Exception () throw ()
 
virtual char const * what () const throw ()
 get exception description and backtrace if available More...
 
- Public Member Functions inherited from senf::ExceptionMixin
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

 Exception (std::string const &description="")
 
- Protected Member Functions inherited from senf::ExceptionMixin
 ExceptionMixin (std::string const &description="")
 Initialize exception with string. More...
 

Additional Inherited Members

- Protected Attributes inherited from senf::ExceptionMixin
std::string what_
 

Detailed Description

Extensible exception base-class.

This base-class is an exception which already includes the ExceptionMixin. All SENF exceptions are derived from this class. Other user-exception may be defined by deriving from this class too.

See also
Exception classes

Definition at line 164 of file Exception.hh.

Constructor & Destructor Documentation

◆ ~Exception()

senf::Exception::~Exception ( )
throw (
)
virtual

Definition at line 54 of file Exception.cc.

◆ Exception()

senf::Exception::Exception ( std::string const &  description = "")
explicitprotected

Member Function Documentation

◆ what()

char const * senf::Exception::what ( ) const
throw (
)
virtual

get exception description and backtrace if available

get description of the exception (message()) and backtrace information if SENF is compiled with SENF_DEBUG

Definition at line 58 of file Exception.cc.


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