#include <error.hh>
|
enum | kind {
r_Error_General,
r_Error_DatabaseClassMismatch,
r_Error_DatabaseClassUndefined,
r_Error_DatabaseClosed,
r_Error_DatabaseOpen,
r_Error_DateInvalid,
r_Error_IteratorExhausted,
r_Error_NameNotUnique,
r_Error_QueryParameterCountInvalid,
r_Error_QueryParameterTypeInvalid,
r_Error_RefInvalid,
r_Error_RefNull,
r_Error_TimeInvalid,
r_Error_TimestampInvalid,
r_Error_TransactionOpen,
r_Error_TransactionNotOpen,
r_Error_TypeInvalid,
r_Error_OIdInvalid,
r_Error_OIdNotUnique,
r_Error_DatabaseUnknown,
r_Error_TransferFailed,
r_Error_HostInvalid,
r_Error_ServerInvalid,
r_Error_RpcInterfaceIncompatible,
r_Error_ClientUnknown,
r_Error_ObjectUnknown,
r_Error_ObjectInvalid,
r_Error_QueryExecutionFailed,
r_Error_BaseDBMSFailed,
r_Error_CollectionElementTypeMismatch,
r_Error_CreatingOIdFailed,
r_Error_TransactionReadOnly,
r_Error_LimitsMismatch,
r_Error_NameInvalid,
r_Error_FeatureNotSupported,
r_Error_SerialisableException,
r_Error_AccesDenied,
r_Error_SystemOverloaded,
r_Error_MemoryAllocation,
r_Error_InvalidOptimizationLevel
} |
| error kinds More...
|
|
error kinds
Enumerator |
---|
r_Error_General |
|
r_Error_DatabaseClassMismatch |
|
r_Error_DatabaseClassUndefined |
|
r_Error_DatabaseClosed |
|
r_Error_DatabaseOpen |
|
r_Error_DateInvalid |
|
r_Error_IteratorExhausted |
|
r_Error_NameNotUnique |
|
r_Error_QueryParameterCountInvalid |
|
r_Error_QueryParameterTypeInvalid |
|
r_Error_RefInvalid |
|
r_Error_RefNull |
|
r_Error_TimeInvalid |
|
r_Error_TimestampInvalid |
|
r_Error_TransactionOpen |
|
r_Error_TransactionNotOpen |
|
r_Error_TypeInvalid |
|
r_Error_OIdInvalid |
|
r_Error_OIdNotUnique |
|
r_Error_DatabaseUnknown |
|
r_Error_TransferFailed |
|
r_Error_HostInvalid |
|
r_Error_ServerInvalid |
|
r_Error_RpcInterfaceIncompatible |
|
r_Error_ClientUnknown |
|
r_Error_ObjectUnknown |
|
r_Error_ObjectInvalid |
|
r_Error_QueryExecutionFailed |
|
r_Error_BaseDBMSFailed |
|
r_Error_CollectionElementTypeMismatch |
|
r_Error_CreatingOIdFailed |
|
r_Error_TransactionReadOnly |
|
r_Error_LimitsMismatch |
|
r_Error_NameInvalid |
|
r_Error_FeatureNotSupported |
|
r_Error_SerialisableException |
|
r_Error_AccesDenied |
|
r_Error_SystemOverloaded |
|
r_Error_MemoryAllocation |
|
r_Error_InvalidOptimizationLevel |
|
r_Error::r_Error |
( |
const r_Error & |
| ) |
|
r_Error::r_Error |
( |
kind |
the_kind, |
|
|
unsigned int |
newErrorNo = 0 |
|
) |
| |
constructor getting the kind
r_Error::r_Error |
( |
unsigned int |
errorno | ) |
|
constructor getting an error number
virtual r_Error::~r_Error |
( |
| ) |
|
throw | ( | |
| ) | | |
|
virtual |
static void r_Error::freeTextTable |
( |
| ) |
|
|
static |
free the text table again
unsigned int r_Error::get_errorno |
( |
| ) |
const |
|
inline |
kind r_Error::get_kind |
( |
| ) |
const |
|
inline |
static r_Error* r_Error::getAnyError |
( |
char * |
serErr | ) |
|
|
static |
This function parses a serialised error.
static void r_Error::initTextTable |
( |
| ) |
|
|
static |
read error text file into text table
virtual void r_Error::resetErrorText |
( |
| ) |
|
|
protectedvirtual |
virtual char* r_Error::serialiseError |
( |
| ) |
|
|
virtual |
used to transfer exceptions of kind r_Error_SerialisableException to the client.
Reimplemented in r_Ebase_dbms.
void r_Error::setErrorTextOnKind |
( |
| ) |
|
|
protected |
set error text according to the actual error kind
void r_Error::setErrorTextOnNumber |
( |
| ) |
|
|
protected |
set error text according to the actual error number
void r_Error::setTextParameter |
( |
const char * |
parameterName, |
|
|
int |
value |
|
) |
| |
replace the specified parameter by the integer value
void r_Error::setTextParameter |
( |
const char * |
parameterName, |
|
|
const char * |
value |
|
) |
| |
replace the specified parameter by the string value
virtual const char* r_Error::what |
( |
| ) |
const |
throw | ( | |
| ) | | |
|
virtual |
unsigned int r_Error::errorNo |
|
protected |
attribute storing the number of the error
attribute storing the error description text
The virtual method is redefined in each subclass which supports text parameters. Usually it is invoked in the constructor of the subclass.
attribute storing the error kind
The documentation for this class was generated from the following file: