Dev Essential  1.6.3
Loading...
Searching...
No Matches
error_def.h File Reference
Include dependency graph for error_def.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define ERROR_DESCRIPTION(_errcode, ...)
 
#define RETURN_ERROR_DESCRIPTION(_errcode, ...)
 

Detailed Description

Public API for result macros

Macro Definition Documentation

◆ ERROR_DESCRIPTION

#define ERROR_DESCRIPTION ( _errcode,
... )
Value:
a_util::strings::format(__VA_ARGS__).c_str(), \
__LINE__, \
__FILE__, \
Definition result_type_decl.h:34
#define A_UTIL_CURRENT_FUNCTION
Definition current_function.h:26
std::string format(const char *str_format,...)

Return an a_util::result::Result object with detailed error information

The resolved macro instanciates and returns the result object with the error description containing line, file and function name this macro is evaluated from as well as the printf()-like values from the second parameter.

Parameters
[in]_errcodeThe error code to distribute with the result object.
[in]...printf()-like arguments creating the error message.

◆ RETURN_ERROR_DESCRIPTION

#define RETURN_ERROR_DESCRIPTION ( _errcode,
... )
Value:
return a_util::result::Result(_errcode, \
a_util::strings::format(__VA_ARGS__).c_str(), \
__LINE__, \
__FILE__, \

Return an a_util::result::Result object with detailed error information

The resolved macro instanciates and returns the result object with the error description containing line, file and function name this macro is evaluated from as well as the printf()-like values from the second parameter.

Parameters
[in]_errcodeThe error code to distribute with the result object.
[in]...printf()-like arguments creating the error message.