rasdaman complete source
Classes | Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
r_Error Class Reference

#include <error.hh>

Inheritance diagram for r_Error:
r_Ebase_dbms r_Ecapability_refused r_Edim_mismatch r_Eindex_violation r_Einit_overflow r_Elimits_mismatch r_Ememory_allocation r_Eno_cell r_Eno_interval r_Eno_permission r_Equery_execution_failed

Classes

struct  errorInfo
 error information More...
 

Public Types

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

Public Member Functions

 r_Error ()
 default constructor More...
 
 r_Error (const r_Error &)
 copy constructor More...
 
 r_Error (kind the_kind, unsigned int newErrorNo=0)
 constructor getting the kind More...
 
 r_Error (unsigned int errorno)
 constructor getting an error number More...
 
virtual ~r_Error () throw ()
 destructor More...
 
virtual const char * what () const throw ()
 get an error description More...
 
const r_Erroroperator= (const r_Error &obj)
 assignment operator More...
 
virtual char * serialiseError ()
 used to transfer exceptions of kind r_Error_SerialisableException to the client. More...
 
void setTextParameter (const char *parameterName, int value)
 replace the specified parameter by the integer value More...
 
void setTextParameter (const char *parameterName, const char *value)
 replace the specified parameter by the string value More...
 
kind get_kind () const
 
unsigned int get_errorno () const
 

Static Public Member Functions

static r_ErrorgetAnyError (char *serErr)
 This function parses a serialised error. More...
 
static void initTextTable ()
 read error text file into text table More...
 
static void freeTextTable ()
 free the text table again More...
 

Protected Member Functions

void setErrorTextOnKind ()
 set error text according to the actual error kind More...
 
void setErrorTextOnNumber ()
 set error text according to the actual error number More...
 
virtual void resetErrorText ()
 reset error text More...
 

Protected Attributes

char * errorText
 attribute storing the error description text More...
 
kind theKind
 attribute storing the error kind More...
 
unsigned int errorNo
 attribute storing the number of the error More...
 

Member Enumeration Documentation

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 

Constructor & Destructor Documentation

r_Error::r_Error ( )

default constructor

r_Error::r_Error ( const r_Error )

copy constructor

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

destructor

Member Function Documentation

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

const r_Error& r_Error::operator= ( const r_Error obj)

assignment operator

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

get an error description

Reimplemented in r_Ebase_dbms.

Member Data Documentation

unsigned int r_Error::errorNo
protected

attribute storing the number of the error

char* r_Error::errorText
protected

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.

kind r_Error::theKind
protected

attribute storing the error kind


The documentation for this class was generated from the following file: