Exception Class Reference

An Exception is thrown when an error occurs. More...

#include <Exception.h>

Inheritance diagram for Exception:

XMLParseException

List of all members.

Public Member Functions

 Exception ()
 Creates an exception.
 Exception (string message)
 Creates an exception.
void setMessage (string message)
 Sets the error message for the exception.
string getMessage ()
 Gets the error message for the exception.

Private Attributes

string message


Detailed Description

An Exception is thrown when an error occurs.

This can be extended to deal with special types of errors.

Definition at line 25 of file Exception.h.


Constructor & Destructor Documentation

Exception::Exception (  ) 

Creates an exception.

Definition at line 15 of file Exception.cpp.

Exception::Exception ( string  message  ) 

Creates an exception.

Parameters:
message A message describing what went wrong.

Definition at line 19 of file Exception.cpp.

References setMessage().


Member Function Documentation

void Exception::setMessage ( string  message  ) 

Sets the error message for the exception.

Definition at line 24 of file Exception.cpp.

Referenced by Exception(), and XMLParseException::XMLParseException().

string Exception::getMessage (  ) 

Gets the error message for the exception.

Definition at line 29 of file Exception.cpp.

References message.

Referenced by QMCJastrowParameters::getPoles().


Member Data Documentation

string Exception::message [private]

Definition at line 27 of file Exception.h.

Referenced by getMessage().


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

Generated on Sat Jul 5 16:14:01 2008 for QMcBeaver by  doxygen 1.5.6