uicore::Exception Class Reference

Top-level exception class. More...

#include <exception.h>

+ Inheritance diagram for uicore::Exception:

Public Member Functions

 Exception (const std::string &message)
 Constructs an exception object. More...
 
virtual ~Exception () throw ()
 Destructs an exception object. More...
 
std::string message_and_stack_trace () const
 Returns the message and call stack present when the exception object was created, formatted using newlines. More...
 
std::vector< std::stringstack_trace () const
 Returns the call stack present when the exception object was created. More...
 
virtual const char * what () const override throw ()
 Returns description of exception. More...
 

Public Attributes

std::string message
 Description of exception. More...
 

Detailed Description

Top-level exception class.

Constructor & Destructor Documentation

uicore::Exception::Exception ( const std::string message)

Constructs an exception object.

virtual uicore::Exception::~Exception ( )
throw (
)
inlinevirtual

Destructs an exception object.

Member Function Documentation

std::string uicore::Exception::message_and_stack_trace ( ) const

Returns the message and call stack present when the exception object was created, formatted using newlines.

On Linux, to obtain function names, remember to link with the -rdynamic flag

std::vector<std::string> uicore::Exception::stack_trace ( ) const

Returns the call stack present when the exception object was created.

On Linux, to obtain function names, remember to link with the -rdynamic flag

virtual const char* uicore::Exception::what ( ) const
throw (
)
overridevirtual

Returns description of exception.

Member Data Documentation

std::string uicore::Exception::message

Description of exception.


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