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.
© Pi Soft, 2018-2026 · Tricryption Engine 8.1
Inheritance
- Inherits _TESTD exception
- Inherited by ERUCES::TEAdminException
- Inherited by ERUCES::TEAgentException
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.
Examples
- cpp_admin_acl_addentry.cpp
- cpp_admin_acl_get.cpp
- cpp_admin_acl_removeentry.cpp
- cpp_admin_acl_update.cpp
- cpp_admin_connect.cpp
- cpp_admin_group_addto_1.cpp
- cpp_admin_group_addto_2.cpp
- cpp_admin_group_removefrom_1.cpp
- cpp_admin_group_removefrom_2.cpp
- cpp_admin_others_getSystemID.cpp
- cpp_admin_others_getoperationlist.cpp
- cpp_admin_others_getversion.cpp
- cpp_admin_others_resetPassword.cpp
- cpp_admin_principal_acltemplate_set.cpp
- cpp_admin_principal_add.cpp
- cpp_admin_principal_defaultgroup_set.cpp
- cpp_admin_principal_get.cpp
- cpp_admin_principal_getList.cpp
- cpp_admin_principal_getbyid_1.cpp
- cpp_admin_principal_getbyid_2.cpp
- cpp_admin_principal_getbyid_3.cpp
- cpp_admin_principal_getbyname.cpp
- cpp_admin_principal_group_add.cpp
- cpp_admin_principal_group_clear.cpp
- cpp_admin_principal_group_get.cpp
- cpp_admin_principal_group_remove.cpp
- cpp_admin_principal_remove.cpp
- cpp_admin_principal_reviewer_add.cpp
- cpp_admin_principal_reviewer_clear.cpp
- cpp_admin_principal_reviewer_get.cpp
- cpp_admin_principal_reviewer_remove.cpp
- cpp_admin_principal_update.cpp
- cpp_admin_query.cpp
- cpp_admin_role_add.cpp
- cpp_admin_role_assignto.cpp
- cpp_admin_role_get.cpp
- cpp_admin_role_getlist.cpp
- cpp_admin_role_remove.cpp
- cpp_admin_role_removefrom.cpp
- cpp_admin_role_update.cpp
- cpp_admin_trustedserver.cpp
- cpp_adminacl_acltemplate_add.cpp
- cpp_adminacl_acltemplate_get.cpp
- cpp_adminacl_acltemplate_remove.cpp
- cpp_adminacl_acltemplate_update.cpp
- cpp_adminacl_templatedir_add.cpp
- cpp_adminacl_templatedir_get.cpp
- cpp_adminacl_templatedir_remove.cpp
- cpp_adminacl_templatedir_update.cpp
- cpp_adminlocal_addsecurefolder.cpp
- cpp_adminlocal_getconfiguration.cpp
- cpp_adminlocal_getstatus.cpp
- cpp_adminlocal_gooffline.cpp
- cpp_adminlocal_goonline.cpp
- cpp_adminlocal_setconfiguration.cpp
- cpp_adminlocal_setstatus.cpp
- cpp_adminlog.cpp
- cpp_agent_hash.cpp
- cpp_connect.cpp
- cpp_connect_cert.cpp
- cpp_connect_ldap.cpp
- cpp_connect_windows.cpp
- cpp_create_key.cpp
- cpp_expire_key.cpp
- cpp_export_import_key.cpp
- cpp_export_key.cpp
- cpp_file.cpp
- cpp_matrix_encrypt.cpp
- cpp_matrix_hash.cpp