Main Page | Modules | Class Hierarchy | Class List | File List | Class Members | File Members | Related Pages

SLException Class Reference
[segusoland C++ Library]

The exceptions top level class. More...

#include <SLException.hpp>

Inheritance diagram for SLException:

Inheritance graph
[legend]
Collaboration diagram for SLException:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 SLException (const SLString &message)
const SLStringgetMessage ()

Protected Attributes

boost::shared_ptr< SLString_shared_ptr

Detailed Description

The exceptions top level class.

Author:
Alexandre Sauve
This is the generic type for exceptions. It provides a pattern to catch all other sub-exceptions and can hold a message.

Example of usage :

throw SLException e("Something Bad Happened"); // implicit constructor for SLString


Constructor & Destructor Documentation

SLException::SLException const SLString message  ) 
 

An exception is always built with a message. This to avoid escaped exceptions reaching the top level of the program without any indication on where they came.


Member Function Documentation

const SLString& SLException::getMessage  ) 
 

The optionnal error message


Member Data Documentation

boost::shared_ptr<SLString> SLException::_shared_ptr [protected]
 

The shared_ptr stuff avoid memory leaks with exceptions.


The documentation for this class was generated from the following file:
Generated on Mon Apr 19 01:03:35 2004 for segusoLand by doxygen 1.3.6-20040222