ERUCES::TEException
#include <teexception.h>
The TEException class represents a Key Service exception.
This class is the base class for the TEAgentException and TEAdminException classes.
Inheritance
- Inherits _TESTD exception
- Inherited by ERUCES::TEAdminException
- Inherited by ERUCES::TEAgentException
Private Attrib
| Type | Name | Description |
|---|---|---|
| TEObjectContainer | _container | |
| _TESTD string | _what | |
| uint32_t | _code | |
| uint32_t | _serverErrCode |
Public Member Functions
| Member | Description |
|---|---|
TEException(uint32_t svrErrCode=0) | The TEException constructor is the default class constructor. |
TEException(const _TESTD string &strError, uint32_t code, uint32_t svrErrCode=0) | The TEException constructor constructs an exception from an error string. |
TEException(const TEException &ex) | The TEException constructor copies an existing constructor object. |
TEException(const _TESTD string &strError, const TEException &ex) | The TEException constructor constructs an exception from an error message and an existing exception. |
~TEException() | The TEException destructor is the class destructor. |
const _TESTD string getMessage() const | The getMessage method gets the latest error message. |
const _TESTD string getAllMessages() const | The getAllMessages method gets all error messages. |
const char * what() const | The what method gets the lastest error message. |
uint32_t getCode() const | The getCode method retrieves the error code. |
uint32_t getServerErrorCode() const | The getServerErrorCode method retrieves the error code from server. |
Member Function Documentation
TEException(uint32_t svrErrCode=0)
The TEException constructor is the default class constructor.
Parameters
| Parameter | Description |
|---|---|
svrErrCode | An integer representing the server error code. |
TEException(const _TESTD string &strError, uint32_t code, uint32_t svrErrCode=0)
The TEException constructor constructs an exception from an error string.
Parameters
| Parameter | Description |
|---|---|
strError | A string representing the error. |
code | An integer representing the error code, |
svrErrCode | An integer representing the server error code. |
TEException(const TEException &ex)
The TEException constructor copies an existing constructor object.
Parameters
| Parameter | Description |
|---|---|
ex | An TEException object to be duplicated. |
TEException(const _TESTD string &strError, const TEException &ex)
The TEException constructor constructs an exception from an error message and an existing exception.
Parameters
| Parameter | Description |
|---|---|
strError | A string representing the error. |
ex | An TEException object to be duplicated. |
~TEException()
The TEException destructor is the class destructor.
const _TESTD string getMessage() const
The getMessage method gets the latest error message.
Returns: Returns a string representing the latest error message.
const _TESTD string getAllMessages() const
The getAllMessages method gets all error messages.
Returns: Returns a string representing a list of all error messages.
const char * what() const
The what method gets the lastest error message.
Returns: Returns a string representing the latest error message.
uint32_t getCode() const
The getCode method retrieves the error code.
Returns: An integer representing the last error code.
uint32_t getServerErrorCode() const
The getServerErrorCode method retrieves the error code from server.
Returns: An integer representing the last error code from server side.