15 #ifndef A_UTIL_UTIL_RESULT_IMPL_ERROR_DESCRIPTION_HEADER_INCLUDED
16 #define A_UTIL_UTIL_RESULT_IMPL_ERROR_DESCRIPTION_HEADER_INCLUDED
51 const char* error_description,
55 const char* error_label);
67 inline std::int32_t
getLine()
const;
133 inline std::int32_t
getLine()
const override;
Implements the error description interface for heap allocated error cases.
const char * getFileName() const
Get name of the file the error was reported in.
const char * getFunctionName() const
Get name of the function the error was reported in.
const std::string _file_name
File in which the error occurred.
std::int32_t getLine() const
Get line in source file where the error was reported.
const char * getErrorDescription() const
Get error code as string representation.
const std::string _error_label
Error code as string representation.
const std::int32_t _line_number
Line number in which the error occurred.
~ErrorDescription()=default
DTOR.
std::int32_t getErrorCode() const
Get error code.
const std::string _error_description
Currently held error description.
const std::string _function_name
Function in which the error occurred.
const char * getErrorCodeLabel() const
Get error code label.
const std::int32_t _error_code
Currently held error code.
The internal interface to ensure binary compatibility of error result descriptions.
Implements the error description interface using static data from a_util::result::ResultInfo<T>
const char * getFunctionName() const override
Does not provide any useful information in this context.
std::int32_t getErrorCode() const override
Get error code using a_util::result::ResultInfo<T>::getCode()
const char * getErrorCodeLabel() const override
Get error label using a_util::result::ResultInfo<T>::getLabel()
const char * getFileName() const override
Does not provide any useful information in this context.
const char * getErrorDescription() const override
Does not provide any useful information in this context.
std::int32_t getLine() const override
Does not provide any useful information in this context.
Define the default error description class for Result return values.
ErrorDescription ErrorDescriptionType
Alias type needed for reference counting.
Serves as the root component, with common functionality documented in core functionality.
Public API for ResultInfo type, functions and macros.
Basic result information template, used by a_util::result::Result.
Private API for IErrorDescription type.