Main Page | Class Hierarchy | Compound List | File List | Compound Members | File Members | Related Pages

Exception Class Reference

Exception class used by many Ck classes. More...

#include <exception.hpp>

List of all members.

Public Member Functions

 Exception (const std::string &error)
 Exception (const char *file, int line, const std::string &error)
 Advanced constructor.

virtual ~Exception ()
const std::string & getError () const
 Get the error message associated with this exception..


Private Attributes

std::string ErrorMsg


Detailed Description

Exception class used by many Ck classes.

This very simple exception class can only hold an error message which can be used to give at least partially useful output to the user.

Definition at line 20 of file exception.hpp.


Constructor & Destructor Documentation

Exception::Exception const std::string &  error  ) 
 

Constructor.

Parameters:
error the error message

Definition at line 19 of file exception.cpp.

Exception::Exception const char *  file,
int  line,
const std::string &  error
 

Advanced constructor.

This constructor takes the additional file and line arguments to provide more useful debug output.

Parameters:
file The filename of the sourcefile where the exception occured. The __FILE__ macro can be useful for this purpose.
line The line number in the sourcefile where the exception occured. The __LINE__ macro can be useful for this purpose.

Definition at line 33 of file exception.cpp.

Exception::~Exception  )  [virtual]
 

Destroys the object

Definition at line 44 of file exception.cpp.


The documentation for this class was generated from the following files:
Generated on Mon Dec 1 14:26:28 2003 for Ck by doxygen 1.3.3