Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

ApplicationError Class Reference

Exception class for errors in the application layer. More...

#include <applicationexception.h>

List of all members.

Public Methods

 ApplicationError (string errormsg, string function_name)
 Constructor. Create an object, print error message and abort if severity FATAL was chosen.

virtual string message ()
 Return nice formatted error message.


Protected Attributes

string errormsg
 textual error message

string function_name
 function/method where this error occured


Detailed Description

Exception class for errors in the application layer.

Each exception gets a severity (Warning, Error or Fatal), a message and the name of the function where it occurred.

Author:
Gernot Hillier


Constructor & Destructor Documentation

ApplicationError::ApplicationError string    errormsg,
string    function_name
[inline]
 

Constructor. Create an object, print error message and abort if severity FATAL was chosen.

Parameters:
errormsg  some informal message describing the error
function_name  name of the function which throws this exception


Member Function Documentation

virtual string ApplicationError::message   [inline, virtual]
 

Return nice formatted error message.

Returns the string "Classname: error message occured in function()"

Returns:
error message


Member Data Documentation

string ApplicationError::errormsg [protected]
 

textual error message

string ApplicationError::function_name [protected]
 

function/method where this error occured


The documentation for this class was generated from the following file:
Generated on Mon Jan 5 12:20:00 2004 for CapiSuite by doxygen1.2.18