claw::graph_exception Class Reference

The exceptions thrown by the graphs. More...

#include <graph.hpp>

List of all members.

Public Member Functions

 graph_exception () throw ()
 Default constructor.
 graph_exception (const std::string &s) throw ()
 Constructor.
virtual ~graph_exception () throw ()
 Destructor.
virtual const char * what () const throw ()
 Get an explanation of the problem.

Private Attributes

const std::string m_msg
 A short explanation of the problem.

Detailed Description

The exceptions thrown by the graphs.

Author:
Julien Jorge

Definition at line 49 of file graph.hpp.


Constructor & Destructor Documentation

claw::graph_exception::graph_exception (  )  throw ()

Default constructor.

Definition at line 39 of file graph.tpp.

00040   : m_msg("No message") 
00041 {
00042 
00043 } // graph_exception()

claw::graph_exception::graph_exception ( const std::string &  s  )  throw ()

Constructor.

Parameters:
s An explanation of the problem.

Definition at line 50 of file graph.tpp.

00051   : m_msg(s) 
00052 {
00053 
00054 } // graph_exception()

claw::graph_exception::~graph_exception (  )  throw () [virtual]

Destructor.

Definition at line 60 of file graph.tpp.

00061 {
00062 
00063 } // ~graph_exception()


Member Function Documentation

const char * claw::graph_exception::what (  )  const throw () [virtual]

Get an explanation of the problem.

Definition at line 69 of file graph.tpp.

References m_msg.

00070 {
00071   return m_msg.c_str(); 
00072 } // what()


Member Data Documentation

const std::string claw::graph_exception::m_msg [private]

A short explanation of the problem.

Definition at line 61 of file graph.hpp.

Referenced by what().


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

Generated on 9 Nov 2009 for CLAW Library (a C++ Library Absolutely Wonderful) by  doxygen 1.6.1