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

CapiMsgError Class Reference

Capi Abstraction Layer exception class thrown if an error is indicated by Capi. More...

#include <capiexception.h>

Inheritance diagram for CapiMsgError:

CapiError List of all members.

Public Member Functions

 CapiMsgError (unsigned info, 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

unsigned info
 error code given by CAPI

Detailed Description

Capi Abstraction Layer exception class thrown if an error is indicated by Capi.

This exception serves as a way to communicate errors indicated by CAPI to the application. These are mostly errors indicated from CAPI_PUT_MESSAGE or *_CONF messages.

It includes also the error code given by CAPI in the info attribute.

Author:
Gernot Hillier


Constructor & Destructor Documentation

CapiMsgError::CapiMsgError unsigned  info,
string  errormsg,
string  function_name
[inline]
 

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

Parameters:
info error code given by CAPI
errormsg informal message describing the error
function_name name of the function which throws this exception


Member Function Documentation

virtual string CapiMsgError::message  )  [inline, virtual]
 

Return nice formatted error message.

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

Returns:
error message

Reimplemented from CapiError.


Member Data Documentation

unsigned CapiMsgError::info [protected]
 

error code given by CAPI


The documentation for this class was generated from the following file:
Generated on Sun Nov 28 14:37:44 2004 for CapiSuite by doxygen 1.3.8