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

CapiWrongState Class Reference

Capi Abstraction Layer exception class thrown if something should be done in a wrong state. More...

#include <capiexception.h>

Inheritance diagram for CapiWrongState:

CapiError List of all members.

Public Member Functions

 CapiWrongState (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.

Detailed Description

Capi Abstraction Layer exception class thrown if something should be done in a wrong state.

This exception is thrown if the Connection is in a wrong state (see Connection::ncci_state and Connection::plci_state) when something connection related should be done. This usually means the call was disconnected by the other party and should be handled by clearing the ressources controlling the call.

Author:
Gernot Hillier


Constructor & Destructor Documentation

CapiWrongState::CapiWrongState 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 CapiWrongState::message  )  [inline, virtual]
 

Return nice formatted error message.

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

Returns:
error message

Reimplemented from CapiError.


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