Grafalgo
Library of useful data structures and algorithms
|
This class contains exceptions used within grafalgo. More...
#include <Exceptions.h>
Public Member Functions | |
Exception (const string &s) | |
Construct a new object and initialize the exception string. | |
string & | toString (string &s) |
Construct a string representing the object. | |
Protected Attributes | |
string | xStr |
Friends | |
ostream & | operator<< (ostream &out, Exception &e) |
This class contains exceptions used within grafalgo.
This is a generic base class for grafalgo exceptions. All grafalgo exceptions define an exception object with an internal string that is initialized by the constructor. The value of this string can be retrieved using the toString method.
Definition at line 24 of file Exceptions.h.
grafalgo::Exception::Exception | ( | const string & | s | ) | [inline] |
Construct a new object and initialize the exception string.
s | is a reference to a string describing the condition that triggered the exception. |
Definition at line 30 of file Exceptions.h.
string& grafalgo::Exception::toString | ( | string & | s | ) | [inline] |
Construct a string representing the object.
s | is a reference to a string in which the result is returned |
Definition at line 36 of file Exceptions.h.