rambrain
rambrain::memoryException Class Reference

Exception for errors with the memory. More...

#include <exceptions.h>

Inheritance diagram for rambrain::memoryException:
rambrain::rambrainException

Public Member Functions

 memoryException (const string &details)
 Create a new exception. More...
 
virtual ~memoryException ()
 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

Exception for errors with the memory.

Happens for example when swapping did unexpectedly not work or perhaps the swap is fully and not designed to be overfilled

Definition at line 87 of file exceptions.h.

Constructor & Destructor Documentation

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

Create a new exception.

Parameters
detailsOptionally provided details about the current state of affairs

Definition at line 95 of file exceptions.h.

virtual rambrain::memoryException::~memoryException ( )
inlinevirtual

Destroy the exception.

Definition at line 99 of file exceptions.h.

Member Function Documentation

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

Report what has gone wrong.

Returns
The report

Definition at line 105 of file exceptions.h.

Member Data Documentation

string rambrain::memoryException::details
private

Definition at line 110 of file exceptions.h.


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