Grafalgo
Library of useful data structures and algorithms
grafalgo::Exception Class Reference

This class contains exceptions used within grafalgo. More...

#include <Exceptions.h>

Inheritance diagram for grafalgo::Exception:
Collaboration diagram for grafalgo::Exception:

List of all members.

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)

Detailed Description

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.


Constructor & Destructor Documentation

grafalgo::Exception::Exception ( const string &  s) [inline]

Construct a new object and initialize the exception string.

Parameters:
sis a reference to a string describing the condition that triggered the exception.

Definition at line 30 of file Exceptions.h.


Member Function Documentation

string& grafalgo::Exception::toString ( string &  s) [inline]

Construct a string representing the object.

Parameters:
sis a reference to a string in which the result is returned
Returns:
a reference to s;

Definition at line 36 of file Exceptions.h.

Here is the caller graph for this function:


The documentation for this class was generated from the following file:
 All Classes Files Functions Variables Typedefs Friends