CodeToString
Function
Converts the error code to the corresponding character.
Format
static const char *CodeToString(const Code code);
Parameters
Parameter |
Mandatory/Optional |
Description |
Value |
|---|---|---|---|
code |
Mandatory |
Error code enumeration |
Enumerated code. For details, see Code Enumeration. |
Usage Example
Converts the error code to the corresponding character.
1 | std::string str(CodeToString(code_)); |
Return Value
Character converted from the error code.
Code Enumeration |
Returned Character Format |
|---|---|
Code::OK |
OK |
Code::ERROR |
Error |
Code::INVALID_ARG |
Invalid argument |
Code::NOT_FOUND |
Not found |
Parent topic: Error