OAuth token endpoint error handler.
More...
#include <error_handlers.h>
OAuth token endpoint error handler.
◆ Accept()
| Status iceberg::rest::OAuthErrorHandler::Accept |
( |
const ErrorResponse & |
error | ) |
const |
|
overridevirtual |
Process an error response and return an appropriate Error.
- Parameters
-
| error | The error response parsed from the HTTP response body |
- Returns
- An Error object with appropriate ErrorKind and message
Implements iceberg::rest::ErrorHandler.
◆ ParseResponse()
| Result< ErrorResponse > iceberg::rest::OAuthErrorHandler::ParseResponse |
( |
uint32_t |
code, |
|
|
const std::string & |
text |
|
) |
| const |
|
overridevirtual |
Parse an HTTP error response body.
- Parameters
-
| code | The HTTP status code from the failed response |
| text | The HTTP response body |
- Returns
- The parsed error response
Implements iceberg::rest::ErrorHandler.
The documentation for this class was generated from the following files: