Hosting courtesy of Sourceforge

SourceForge Logo
Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

Util::GeneralException Class Reference

#include <GeneralException.h>

List of all members.

Public Methods

 GeneralException (const std::string &error="", const std::string file="", size_t lineNumber=0)
virtual std::string getError () const


Detailed Description

Class to serve as basis for exceptions. Designed it so that the cost of using it isn't so severe, as to make it not worthwhile to throw and catch exceptions while still optionally providing costly (but useful) operations in debugging and error reporting

Definition at line 35 of file GeneralException.h.


Constructor & Destructor Documentation

GeneralException::GeneralException const std::string &    error = "",
const std::string    file = "",
size_t    lineNumber = 0
 

Constructs GeneralException, if speed is important don't provide arguments to the ctor

Parameters:
error  optional string describing the error
file  optional string reporting the source file the exception occured in (use __FILE__ macro)
lineNumber  optional size_t reporting the line number the exception occured in (use __LINE__ macro)

Definition at line 24 of file GeneralException.cpp.

virtual Util::GeneralException::~GeneralException   [virtual]
 

Definition at line 49 of file GeneralException.h.


Member Function Documentation

std::string GeneralException::getError   const [virtual]
 

outputs the error message based on information sent in the constructor

Returns:
string containing explanation of error

Definition at line 30 of file GeneralException.cpp.


Member Data Documentation

std::string Util::GeneralException::errorMsg [protected]
 

Definition at line 51 of file GeneralException.h.

std::string Util::GeneralException::fileName [protected]
 

Definition at line 52 of file GeneralException.h.

size_t Util::GeneralException::lineNum [protected]
 

Definition at line 53 of file GeneralException.h.


The documentation for this class was generated from the following files:
Generated on Tue May 21 07:26:58 2002 for BomberLAN by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001