Represents an error condition with an associated message and optional supplementary data.
More...
Represents an error condition with an associated message and optional supplementary data.
This is designed to encapsulate error information in a unified structure. It allows for the storage and retrieval of a descriptive error message, which can be used to communicate the nature of the error to the user or another part of the system. Additionally, it supports optional supplementary data to provide extra context when needed for debugging, logging, etc. This serves as a foundation for custom error handling and can be extended for specific use cases.
const ::QString & drn::foundation::Error::message |
( |
| ) |
const |
|
nodiscardnoexcept |
An accessor to the error message.
It is useful when the descriptive error message needs to be used, such as in logging, debugging, displaying error messages to the user, or capturing error information for further handling. This does not include any supplementary data or context, only the descriptive error messages.
- Returns
- The error message describing the nature of this error.