Sparksee  6.0.2
Exception Class Reference

Exception class. More...

Inheritance diagram for Exception:
Inheritance graph

Public Member Functions

 Exception ()
 Creates a new instance.
 
 Exception (const std::string &mess)
 Creates a new instance. More...
 
const std::string & Message () const
 Gets the message of the exception. More...
 
void SetMessage (const std::string &mess)
 Sets the message of the exception. More...
 
virtual ~Exception ()
 Destructor.
 

Protected Attributes

std::string message
 Message of the exception.
 

Detailed Description

Exception class.

This is the superclass of those exceptions that can be thrown during the normal execution of a program.

It is expected all methods declare all Exception (or subclasses) they throw.

Author
Sparsity Technologies http://www.sparsity-technologies.com

Constructor & Destructor Documentation

Exception::Exception ( const std::string &  mess)

Creates a new instance.

Parameters
mess[in] Message of the exception.

Member Function Documentation

const std::string& Exception::Message ( ) const

Gets the message of the exception.

It should be called GetMessage but this is not possible because of a macro defined in Windows.

Returns
The message of the exception.
void Exception::SetMessage ( const std::string &  mess)

Sets the message of the exception.

Parameters
mess[in] Message.

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