kn::MathException Class Reference

Exception thrown in case of math error. More...

#include <MathException.hpp>

Inherits std::exception.

Collaboration diagram for kn::MathException:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 MathException (const std::string &err="", const std::string &funcname="")
 Constructor with error string and calling function name.
 MathException (const MathException &e)
 Copy Constructor.
 ~MathException () throw ()
 Exception destructor.
std::string errorString () const
 Getter for str.
virtual const char * what () const throw ()
 Standard exception function overrinding.


Detailed Description

Exception thrown in case of math error.

Definition at line 53 of file MathException.hpp.


Constructor & Destructor Documentation

kn::MathException::MathException ( const std::string &  err = "",
const std::string &  funcname = "" 
)

Constructor with error string and calling function name.

Parameters:
err Error string
funcname calling function name

Definition at line 37 of file MathException.cpp.

kn::MathException::MathException ( const MathException e  ) 

Copy Constructor.

Parameters:
e Error to clone

Definition at line 48 of file MathException.cpp.

kn::MathException::~MathException (  )  throw () [inline]

Exception destructor.

Definition at line 70 of file MathException.hpp.


Member Function Documentation

std::string kn::MathException::errorString (  )  const [inline]

Getter for str.

Returns:
Concatenated error string

Definition at line 80 of file MathException.hpp.

virtual const char* kn::MathException::what (  )  const throw () [inline, virtual]

Standard exception function overrinding.

Returns:
Concatenated error string

Definition at line 84 of file MathException.hpp.


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

Generated on Thu Nov 12 16:06:35 2009 for OpenKN-math by  doxygen 1.5.8