rasdaman client API  10.6.3
The Array Analytics Engine: Datacubes at Your Fingertips
Public Member Functions | Protected Member Functions | List of all members
r_Equery_execution_failed Class Reference

The class is used for errors occuring through query execution. More...

#include <error.hh>

Inheritance diagram for r_Equery_execution_failed:
r_Error

Public Member Functions

 r_Equery_execution_failed (unsigned int errorno, unsigned int lineno, unsigned int columnno, const char *token)
 default constructor More...
 
unsigned int get_lineno () const
 
unsigned int get_columnno () const
 
const char * get_token () const
 
- Public Member Functions inherited from r_Error
 r_Error ()
 
 r_Error (kind theKindArg, unsigned int newErrorNo=0)
 constructor getting the kind More...
 
 r_Error (kind theKindArg, std::string errorParam)
 constructor getting the kind and additional error details More...
 
 r_Error (unsigned int errorno)
 constructor getting an error number More...
 
 r_Error (unsigned int errorno, std::string errorDetails)
 constructor getting an error number and additional error details More...
 
 r_Error (const char *what)
 constructor getting an error text More...
 
 ~r_Error () noexcept override=default
 
const char * what () const noexcept override
 
virtual const std::string & what_str () const noexcept
 
kind get_kind () const
 
unsigned long get_errorno () const
 
const std::string & get_errorparam () const
 
void set_what (const char *what)
 
virtual std::string serialiseError () const
 used to transfer exceptions of kind r_Error_SerialisableException to the client. More...
 
void setTextParameter (const char *parameterName, long long 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...
 

Protected Member Functions

void resetErrorText () override
 reset error text More...
 
- Protected Member Functions inherited from r_Error
void setErrorTextOnKind ()
 set error text according to the actual error kind More...
 
void setErrorTextOnNumber ()
 set error text according to the actual error number More...
 
void updateWithErrorDetails ()
 Update the standard error text with the extra error information if any was specified. More...
 

Additional Inherited Members

- Public Types inherited from r_Error
enum  kind {
  r_EGeneral , 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_FileNotFound , 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_InvalidBoundsStringContents , r_Error_RuntimeProjectionError ,
  r_Error_InvalidSourceCRS , r_Error_InvalidTargetCRS , r_Error_InvalidProjectionResultGridExtents , r_Error_FileTileStructureInconsistent ,
  r_Error_RasFedMessageParsingFailed , r_Error_UDFInstallationDirectoryNotDefined , r_Error_TileCannotBeLocked , r_Error_Conversion ,
  r_Error_RasfedConnectionFailed , r_Error_RasfedConnectionTimeout , r_Error_RasfedUnknownPeerHostname
}
 error kinds More...
 
- Static Public Member Functions inherited from r_Error
static void initTextTable ()
 read error text file into text table More...
 
- Protected Attributes inherited from r_Error
std::string errorText
 attribute storing the error description text More...
 
unsigned int errorNo {0u}
 attribute storing the number of the error More...
 
kind theKind {r_Error_General}
 attribute storing the error kind More...
 
std::string errorDetails
 additional information for errors that can be parameterized More...
 

Detailed Description

The class is used for errors occuring through query execution.

In most cases, the position which caused the error can be fixed. This position is specified by line number, column number, and the token which is involved. Additionally, the class is generic concerning the error type. Different error types can be specified by stating the error number.

Constructor & Destructor Documentation

◆ r_Equery_execution_failed()

r_Equery_execution_failed::r_Equery_execution_failed ( unsigned int  errorno,
unsigned int  lineno,
unsigned int  columnno,
const char *  token 
)

default constructor

Member Function Documentation

◆ get_columnno()

unsigned int r_Equery_execution_failed::get_columnno ( ) const

◆ get_lineno()

unsigned int r_Equery_execution_failed::get_lineno ( ) const

◆ get_token()

const char* r_Equery_execution_failed::get_token ( ) const

◆ resetErrorText()

void r_Equery_execution_failed::resetErrorText ( )
overrideprotectedvirtual

reset error text

Reimplemented from r_Error.


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