ADTF
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
tErrorString

Wrapper for stringification of error codes - for usage by struct tError. More...

#include <error.h>

Inheritance diagram for tErrorString:
[legend]

Public Member Functions

 tErrorString ()=default
 Default constructor.
 
constexpr tErrorString (const tErrorCode::error_code_type i_nErrorCode, const tChar *i_strErrorCode) noexcept
 Construct with error code and error string.
 
constexpr const tCharstrErrorCode () const noexcept
 Get the error code as string representation.
 

Private Attributes

const tChar *const strValue
 Pointer to existing error code string.
 

Additional Inherited Members

- Public Types inherited from tErrorCode
typedef tInt32 error_code_type
 Type of the error code.
 
- Public Attributes inherited from tErrorCode
error_code_type value
 Value of this error code.
 

Detailed Description

Wrapper for stringification of error codes - for usage by struct tError.

Definition at line 28 of file builds/digitalwerk/solutions/adtf_content/adtf_base/adtf_core/src/libraries/a_utils/include/a_utils/base/error.h.

Constructor & Destructor Documentation

◆ tErrorString()

tErrorString ( const tErrorCode::error_code_type i_nErrorCode,
const tChar * i_strErrorCode )
inlineconstexprnoexcept

Construct with error code and error string.

Parameters
[in]i_nErrorCodeThe error code - passed through to tErrorCode base class
[in]i_strErrorCodeThe error code string

Definition at line 38 of file builds/digitalwerk/solutions/adtf_content/adtf_base/adtf_core/src/libraries/a_utils/include/a_utils/base/error.h.

Member Function Documentation

◆ strErrorCode()

const tChar * strErrorCode ( ) const
inlineconstexprnoexcept

Get the error code as string representation.

Returns
The error code as string representation

Definition at line 45 of file builds/digitalwerk/solutions/adtf_content/adtf_base/adtf_core/src/libraries/a_utils/include/a_utils/base/error.h.

References strValue.

Member Data Documentation

◆ strValue

const tChar* const strValue
private

Pointer to existing error code string.

Definition at line 48 of file builds/digitalwerk/solutions/adtf_content/adtf_base/adtf_core/src/libraries/a_utils/include/a_utils/base/error.h.

Referenced by strErrorCode().