|
iceberg-cpp
|
Error handler interface for processing REST API error responses. Maps HTTP status codes to appropriate ErrorKind values following the Iceberg REST specification. More...
#include <error_handlers.h>
Public Member Functions | |
| virtual Status | Accept (const ErrorResponse &error) const =0 |
| Process an error response and return an appropriate Error. | |
| virtual Result< ErrorResponse > | ParseResponse (uint32_t code, const std::string &text) const =0 |
| Parse an HTTP error response body. | |
Error handler interface for processing REST API error responses. Maps HTTP status codes to appropriate ErrorKind values following the Iceberg REST specification.
|
pure virtual |
Process an error response and return an appropriate Error.
| error | The error response parsed from the HTTP response body |
Implemented in iceberg::rest::DefaultErrorHandler, iceberg::rest::NamespaceErrorHandler, iceberg::rest::DropNamespaceErrorHandler, iceberg::rest::ConfigErrorHandler, iceberg::rest::TableErrorHandler, iceberg::rest::TableCommitErrorHandler, iceberg::rest::CreateTableErrorHandler, iceberg::rest::ViewErrorHandler, iceberg::rest::ViewCommitErrorHandler, iceberg::rest::PlanErrorHandler, iceberg::rest::PlanTaskErrorHandler, and iceberg::rest::OAuthErrorHandler.
|
pure virtual |
Parse an HTTP error response body.
| code | The HTTP status code from the failed response |
| text | The HTTP response body |
Implemented in iceberg::rest::DefaultErrorHandler, and iceberg::rest::OAuthErrorHandler.