The provider answered with a non-success status or with an error payload.
More...
#include <Errors.h>
The provider answered with a non-success status or with an error payload.
◆ ProviderError()
| OpenAnima::ProviderError::ProviderError |
( |
const std::string & |
message, |
|
|
long |
statusCode |
|
) |
| |
|
inline |
Creates an error carrying the status reported by the provider.
- Parameters
-
| message | Description of the failure, including the status when there is one. |
| statusCode | HTTP status, or 0 when the provider failed without reporting one. |
◆ statusCode()
| long OpenAnima::ProviderError::statusCode |
( |
| ) |
const |
|
inlinenoexcept |
- Returns
- The HTTP status reported by the provider, or 0 when there is none.
The documentation for this class was generated from the following file:
- /home/runner/work/OpenAnima/OpenAnima/include/OpenAnima/Errors.h