Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

ExceptionBase Class Reference

General exception base class with error reporting. More...

#include <Exception.h>

Inheritance diagram for ExceptionBase:

Exception List of all members.

Public Methods

 ExceptionBase (std::string const &type="Exception", std::string const &msg="")
 Create a new exception.

 ExceptionBase (ExceptionBase const &e)
 Copy constructor.

virtual ~ExceptionBase ()
 Destructor.

std::string getMessage ()
 Get the string describing the error.

std::string getType ()
 Get the string representing the type of error.

std::string getError ()
 Get the full error message (type + message).

void appendMessage (std::string const &msg)
 Append additional information to the error description.

void addMessage (std::string const &msg)
 Add (prepend) additional information to the error description.

void clear ()
 Reset the exception so that it will not print to stderr on destruction.

void details ()
 Dump information about the exception to stderr.


Detailed Description

General exception base class with error reporting.

Author:
Mark Rose <mrose@stm.lbl.gov>


Constructor & Destructor Documentation

NAMESPACE_SIMDATA ExceptionBase::ExceptionBase std::string const &    type = "Exception",
std::string const &    msg = ""
 

Create a new exception.

Parameters:
type  a string representing the type of error.
msg  a string providing additional information about the error.

ExceptionBase::ExceptionBase ExceptionBase const &    e
 

Copy constructor.

ExceptionBase::~ExceptionBase   [virtual]
 

Destructor.

If the exception has not cleared, it will display its details to stderr on destruction.


Member Function Documentation

void ExceptionBase::addMessage std::string const &    msg
 

Add (prepend) additional information to the error description.

void ExceptionBase::appendMessage std::string const &    msg
 

Append additional information to the error description.

void ExceptionBase::clear  
 

Reset the exception so that it will not print to stderr on destruction.

void ExceptionBase::details  
 

Dump information about the exception to stderr.

std::string ExceptionBase::getError  
 

Get the full error message (type + message).

std::string ExceptionBase::getMessage  
 

Get the string describing the error.

std::string ExceptionBase::getType  
 

Get the string representing the type of error.


The documentation for this class was generated from the following files:
SimData version pre-0.4.0. For more information on SimData, visit the SimData Homepage.

Generated on Tue Oct 14 12:06:40 2003, using Doxygen 1.2.18.

[SF.net]