rambrain
rambrain::unexpectedStateException Class Reference

An exception for when something totally unexpected happened. More...

#include <exceptions.h>

Inheritance diagram for rambrain::unexpectedStateException:
rambrain::rambrainException

Public Member Functions

 unexpectedStateException (const string &details)
 Create a new exception. More...
 
virtual ~unexpectedStateException ()
 Destroy the exception. More...
 
virtual const char * what () const throw ()
 Report what has gone wrong. More...
 

Private Attributes

string details
 

Additional Inherited Members

- Private Member Functions inherited from rambrain::rambrainException
virtual ~rambrainException ()
 Destroy the exception. More...
 

Detailed Description

An exception for when something totally unexpected happened.

Definition at line 118 of file exceptions.h.

Constructor & Destructor Documentation

rambrain::unexpectedStateException::unexpectedStateException ( const string &  details)
inline

Create a new exception.

Parameters
detailsOptionally provided details about the current state of affairs

Definition at line 126 of file exceptions.h.

virtual rambrain::unexpectedStateException::~unexpectedStateException ( )
inlinevirtual

Destroy the exception.

Definition at line 130 of file exceptions.h.

Member Function Documentation

virtual const char* rambrain::unexpectedStateException::what ( ) const
throw (
)
inlinevirtual

Report what has gone wrong.

Returns
The report

Definition at line 136 of file exceptions.h.

Member Data Documentation

string rambrain::unexpectedStateException::details
private

Definition at line 141 of file exceptions.h.


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