Exception Class Reference

#include <Exception.hpp>

Collaboration diagram for Exception:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 Exception (std::string message, std::string filename, const unsigned rLineNumber)
std::string GetMessage () const

Private Attributes

std::string mMessage


Detailed Description

Exception class. All exceptions thrown by this code are currently instances of this class.

Todo:
Might we want this class to inherit from STL exceptions?

Definition at line 50 of file Exception.hpp.


Constructor & Destructor Documentation

Exception::Exception ( std::string  message,
std::string  filename,
const unsigned  rLineNumber 
)

Construct an exception with a message string.

Parameters:
message the message
filename which source file threw the exception
rLineNumber which line number of the source file threw the exception

Definition at line 33 of file Exception.cpp.

References mMessage.


Member Function Documentation

std::string Exception::GetMessage (  )  const

Get the message associated with the exception

Returns:
The message set when the exception was thrown.

Definition at line 51 of file Exception.cpp.

References mMessage.

Referenced by AbstractConvergenceTester< CELL, CARDIAC_PROBLEM, DIM, PROBLEM_DIM >::Converge(), and AbstractCardiacProblem< SPACE_DIM, PROBLEM_DIM >::Initialise().


Member Data Documentation

std::string Exception::mMessage [private]

Exception message

Definition at line 53 of file Exception.hpp.

Referenced by Exception(), and GetMessage().


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

Generated on Wed Mar 18 12:52:29 2009 for Chaste by  doxygen 1.5.5