#include <capiexception.h>
Inheritance diagram for CapiError:

Public Member Functions | |
| CapiError (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 | |
This is the general class for all Capi errors. It serves as base class for the more specific exceptions and also as one-size-fits-all throwable object if the other errors doesn't fit. ;-)
Each exception gets a severity (Warning, Error or Fatal), a message and the name of the function where it occurred. If you need further data, please derive a sub-class or format it into the errormsg.
|
||||||||||||
|
Constructor. Create an object, print error message and abort if severity FATAL was chosen.
|
|
|
Return nice formatted error message. Returns the string "Classname: error message occured in function()"
Reimplemented in CapiWrongState, CapiMsgError, and CapiExternalError.
|
|
|
textual error message
|
|
|
function/method where this error occured
|
1.3.8