Sparksee 6.1.0
Exception Class Reference

Exception class. More...

#include <Exception.h>

Inheritance diagram for Exception:
Inheritance graph

Public Member Functions

 Exception ()
 Creates a new instance.
 Exception (const std::string &mess)
 Creates a new instance.
const std::string & Message () const
 Gets the message of the exception.
void SetMessage (const std::string &mess)
 Sets the message of the exception.
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::Exception ( const std::string & mess)

Creates a new instance.

Parameters
mess[in] Message of the exception.

Member Function Documentation

◆ Message()

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.

◆ SetMessage()

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: