ADTF
3.18.2
|
Implements the error description interface for heap allocated error cases. More...
Public Member Functions | |
ErrorDescription (const ErrorDescription &)=delete | |
ErrorDescription & | operator= (const ErrorDescription &)=delete |
ErrorDescription (ErrorDescription &&)=delete | |
ErrorDescription & | operator= (ErrorDescription &&)=delete |
~ErrorDescription ()=default | |
DTOR. | |
ErrorDescription (std::int32_t error_code, const char *error_description, std::int32_t line, const char *file, const char *function, const char *error_label) | |
Construct error description object with complete set of error information. More... | |
std::int32_t | getErrorCode () const |
Get error code. More... | |
std::int32_t | getLine () const |
Get line in source file where the error was reported. More... | |
const char * | getErrorDescription () const |
Get error code as string representation. More... | |
const char * | getFileName () const |
Get name of the file the error was reported in. More... | |
const char * | getFunctionName () const |
Get name of the function the error was reported in. More... | |
const char * | getErrorCodeLabel () const |
Get error code label. More... | |
Private Attributes | |
const std::int32_t | _error_code |
Currently held error code. | |
const std::int32_t | _line_number |
Line number in which the error occurred. | |
const std::string | _error_description |
Currently held error description. | |
const std::string | _file_name |
File in which the error occurred. | |
const std::string | _function_name |
Function in which the error occurred. | |
const std::string | _error_label |
Error code as string representation. | |
Additional Inherited Members | |
Protected Member Functions inherited from IErrorDescription | |
~IErrorDescription () | |
DTOR. | |
Implements the error description interface for heap allocated error cases.
Definition at line 29 of file error_description.h.
|
inline |
Construct error description object with complete set of error information.
ErrorCode | Error code (to deduce specialized template to stringify the error code) |
[in] | error_code | The The concrete error object |
[in] | error_description | Complete description of the error |
[in] | line | Line in source file the error was reported (default: -1) |
[in] | file | Source file the error was reported in |
[in] | function | Function the error was reported in |
[in] | error_label | The error code as an string object |
Definition at line 23 of file error_description_impl.h.
|
inlinevirtual |
Get error code.
Implements IErrorDescription.
Definition at line 38 of file error_description_impl.h.
References ErrorDescription::_error_code.
|
inlinevirtual |
Get error code label.
Implements IErrorDescription.
Definition at line 63 of file error_description_impl.h.
References ErrorDescription::_error_label.
|
inlinevirtual |
Get error code as string representation.
Implements IErrorDescription.
Definition at line 48 of file error_description_impl.h.
References ErrorDescription::_error_description.
|
inlinevirtual |
Get name of the file the error was reported in.
Implements IErrorDescription.
Definition at line 53 of file error_description_impl.h.
References ErrorDescription::_file_name.
|
inlinevirtual |
Get name of the function the error was reported in.
Implements IErrorDescription.
Definition at line 58 of file error_description_impl.h.
References ErrorDescription::_function_name.
|
inlinevirtual |
Get line in source file where the error was reported.
Implements IErrorDescription.
Definition at line 43 of file error_description_impl.h.
References ErrorDescription::_line_number.