This class exposes details for a failed method call.
More...
#include <luciad/ErrorInfo.h>
This class exposes details for a failed method call.
It contains :
- An error message explaining why the call failed.
- An error code (see std::error_code).
Related article: Error handling conventions used in the API The exception type depends on the context of the call, please refer to the related documentation.
◆ ErrorInfo() [1/2]
luciad::ErrorInfo::ErrorInfo |
( |
std::error_code |
errorCode, |
|
|
const std::string & |
message = "" |
|
) |
| |
|
inlineexplicit |
- Parameters
-
errorCode | The error's code. |
message | The error's message. |
◆ ErrorInfo() [2/2]
luciad::ErrorInfo::ErrorInfo |
( |
ErrorCode |
errorCode, |
|
|
const std::string & |
message = "" |
|
) |
| |
|
inlineexplicit |
◆ ~ErrorInfo()
luciad::ErrorInfo::~ErrorInfo |
( |
| ) |
|
|
default |
◆ getErrorCode()
std::error_code luciad::ErrorInfo::getErrorCode |
( |
| ) |
const |
|
inline |
◆ getMessage()
const std::string & luciad::ErrorInfo::getMessage |
( |
| ) |
const |
|
inline |
- Returns
- the error's message.
◆ operator!=() [1/2]
bool luciad::ErrorInfo::operator!= |
( |
const std::error_code & |
errorCode | ) |
const |
|
inline |
◆ operator!=() [2/2]
bool luciad::ErrorInfo::operator!= |
( |
const std::error_condition & |
errorCondition | ) |
const |
|
inline |
◆ operator==() [1/2]
bool luciad::ErrorInfo::operator== |
( |
const std::error_code & |
errorCode | ) |
const |
|
inline |
Enable the ErrorInfo to be compared against an std::error_code.
◆ operator==() [2/2]
bool luciad::ErrorInfo::operator== |
( |
const std::error_condition & |
errorCondition | ) |
const |
|
inline |