|
iceberg-cpp
|
Default error handler for REST API responses. More...
#include <error_handlers.h>
Public Member Functions | |
| Status | Accept (const ErrorResponse &error) const override |
| Process an error response and return an appropriate Error. | |
Static Public Member Functions | |
| static const std::shared_ptr< DefaultErrorHandler > & | Instance () |
| Returns the singleton instance. | |
Default error handler for REST API responses.
|
overridevirtual |
Process an error response and return an appropriate Error.
| error | The error response parsed from the HTTP response body |
Implements iceberg::rest::ErrorHandler.
Reimplemented in iceberg::rest::NamespaceErrorHandler, iceberg::rest::DropNamespaceErrorHandler, iceberg::rest::TableErrorHandler, iceberg::rest::ViewErrorHandler, iceberg::rest::TableCommitErrorHandler, and iceberg::rest::ViewCommitErrorHandler.