faudes::Exception Class Reference

#include <exception.h>

List of all members.


Detailed Description

Faudes exception class.

libFAUDES uses the C++ exception mechanism to report errors on file IO and all sorts of invalid arguments. Members are

Parameters:
Function Function name (where did the exception happen)
Description Detailed description (human readable comment)
ErrorId Error id (numeric id, see below)
Define the compiletime option FAUDES_DEBUG_EXCEPTIONS to enable verbose output when exceptions are thrown, including those that are catched on another level. Define the compiletime option FAUDES_CHECKED to turn on argument validation on both internal and user functions.

(File-) System Errors

Symboltable Errors

Token IO Errors

Container Classes Errors

Core Generator Classes Errors

Generator Operation Errors

Exception ids between 300 and 999 are used by LRT plugins.

Definition at line 101 of file exception.h.

Public Member Functions

 Exception (const std::string &rFunctionName, const std::string &rDescription, unsigned int errorId)
 Constructor.
virtual ~Exception () throw ()
 Destructor.
virtual const char * Where () const throw ()
 Returns Function.
virtual const char * What () const throw ()
 Returns error description.
virtual unsigned int Id () const throw ()
 Returns error id.

Private Attributes

std::string FunctionName
 Function name.
std::string Description
 Error description.
unsigned int ErrorId
 Error id.


Constructor & Destructor Documentation

faudes::Exception::Exception const std::string &  rFunctionName,
const std::string &  rDescription,
unsigned int  errorId
[explicit]
 

Constructor.

Writes an error message on stderr.

Parameters:
rFunctionName Function name (where did the exception happen)
rDescription Detailed error description
errorId Error id

Definition at line 27 of file exception.cpp.

faudes::Exception::~Exception  )  throw () [virtual]
 

Destructor.

Definition at line 36 of file exception.cpp.


Member Function Documentation

unsigned int faudes::Exception::Id  )  const throw () [virtual]
 

Returns error id.

Definition at line 46 of file exception.cpp.

const char * faudes::Exception::What  )  const throw () [virtual]
 

Returns error description.

Definition at line 42 of file exception.cpp.

const char * faudes::Exception::Where  )  const throw () [virtual]
 

Returns Function.

Definition at line 38 of file exception.cpp.


Member Data Documentation

std::string faudes::Exception::Description [private]
 

Error description.

Definition at line 135 of file exception.h.

unsigned int faudes::Exception::ErrorId [private]
 

Error id.

Definition at line 138 of file exception.h.

std::string faudes::Exception::FunctionName [private]
 

Function name.

Definition at line 132 of file exception.h.


The documentation for this class was generated from the following files:
Generated on Fri May 9 11:26:48 2008 for libFAUDES 2.09b by  doxygen 1.4.4