Skip to main content

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

Private Attrib

TypeNameDescription
TEObjectContainer_container
_TESTD string_what
uint32_t_code
uint32_t_serverErrCode

Public Member Functions

MemberDescription
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() constThe getMessage method gets the latest error message.
const _TESTD string getAllMessages() constThe getAllMessages method gets all error messages.
const char * what() constThe what method gets the lastest error message.
uint32_t getCode() constThe getCode method retrieves the error code.
uint32_t getServerErrorCode() constThe 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

ParameterDescription
svrErrCodeAn 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

ParameterDescription
strErrorA string representing the error.
codeAn integer representing the error code,
svrErrCodeAn integer representing the server error code.

TEException(const TEException &ex)

The TEException constructor copies an existing constructor object.

Parameters

ParameterDescription
exAn 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

ParameterDescription
strErrorA string representing the error.
exAn 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.