|
iceberg-cpp
|
OAuth token endpoint error handler. More...
#include <error_handlers.h>
Public Member Functions | |
| Status | Accept (const ErrorResponse &error) const override |
| Process an error response and return an appropriate Error. | |
| Result< ErrorResponse > | ParseResponse (uint32_t code, const std::string &text) const override |
| Parse an HTTP error response body. | |
Static Public Member Functions | |
| static const std::shared_ptr< OAuthErrorHandler > & | Instance () |
OAuth token endpoint error handler.
|
overridevirtual |
Process an error response and return an appropriate Error.
| error | The error response parsed from the HTTP response body |
Implements iceberg::rest::ErrorHandler.
|
overridevirtual |
Parse an HTTP error response body.
| code | The HTTP status code from the failed response |
| text | The HTTP response body |
Implements iceberg::rest::ErrorHandler.