ClanLib  2.3.7
List of all members
CL_Exception Class Reference

Top-level exception class. More...

#include <exception.h>

Inheritance diagram for CL_Exception:
Inheritance graph
[legend]

Public Member Functions

Construction
 CL_Exception (const CL_String &message)
 Constructs an exception object. More...
 
virtual ~CL_Exception () throw ()
 Destructs an exception object. More...
 
Operations
std::vector< CL_Stringget_stack_trace () const
 Returns the call stack present when the exception object was created. More...
 
CL_String get_message_and_stack_trace () const
 Returns the message and call stack present when the exception object was created, formatted using newlines. More...
 

Attributes

CL_String message
 Description of exception. More...
 
virtual const char * what () const throw ()
 Returns description of exception. More...
 

Detailed Description

Top-level exception class.

Constructor & Destructor Documentation

CL_Exception::CL_Exception ( const CL_String message)

Constructs an exception object.

virtual CL_Exception::~CL_Exception ( )
throw (
)
inlinevirtual

Destructs an exception object.

Member Function Documentation

CL_String CL_Exception::get_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<CL_String> CL_Exception::get_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* CL_Exception::what ( ) const
throw (
)
virtual

Returns description of exception.

Member Data Documentation

CL_String CL_Exception::message

Description of exception.


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