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
ErrorCode that identifies the general category of the failure, independent of the message text.
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 |
( |
ErrorCode | errorCode | ) |
|
|
explicit |
Constructs error info using an error code.
The message is derived from the error code.
- Parameters
-
| errorCode | The error's code. |
- Since
- 2026.1
◆ ErrorInfo() [2/2]
| luciad::ErrorInfo::ErrorInfo |
( |
ErrorCode | errorCode, |
|
|
const std::string & | message ) |
|
explicit |
Constructs error info using an error code and a message.
- Parameters
-
| errorCode | The error's code. |
| message | The error's message. |
◆ getErrorCode()
| ErrorCode luciad::ErrorInfo::getErrorCode |
( |
| ) |
const |
|
inline |
Returns the error's code.
- Returns
- the error's code.
◆ getMessage()
| const std::string & luciad::ErrorInfo::getMessage |
( |
| ) |
const |
|
inline |
Returns the error's message.
- Returns
- the error's message.