Public Member Functions | Private Attributes

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 50 of file graph.hpp.


Constructor & Destructor Documentation

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

Default constructor.

Definition at line 39 of file graph.tpp.

  : m_msg("No message") 
{

} // 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.

  : m_msg(s) 
{

} // graph_exception()

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

Destructor.

Definition at line 60 of file graph.tpp.

{

} // ~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.

{
  return m_msg.c_str(); 
} // what()


Member Data Documentation

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

A short explanation of the problem.

Definition at line 62 of file graph.hpp.

Referenced by what().


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