24#include "iceberg/catalog/rest/iceberg_rest_export.h"
26#include "iceberg/result.h"
31namespace iceberg::rest {
50 static const std::shared_ptr<DefaultErrorHandler>& Instance();
62 static const std::shared_ptr<NamespaceErrorHandler>& Instance();
74 static const std::shared_ptr<DropNamespaceErrorHandler>& Instance();
86 static const std::shared_ptr<TableErrorHandler>& Instance();
98 static const std::shared_ptr<ViewErrorHandler>& Instance();
110 static const std::shared_ptr<TableCommitErrorHandler>& Instance();
122 static const std::shared_ptr<ViewCommitErrorHandler>& Instance();
Default error handler for REST API responses.
Definition error_handlers.h:47
Error handler for drop namespace operations.
Definition error_handlers.h:71
Error handler interface for processing REST API error responses. Maps HTTP status codes to appropriat...
Definition error_handlers.h:35
virtual Status Accept(const ErrorResponse &error) const =0
Process an error response and return an appropriate Error.
Namespace-specific error handler for create/read/update operations.
Definition error_handlers.h:59
Table commit operation error handler.
Definition error_handlers.h:107
Table-level error handler.
Definition error_handlers.h:83
View commit operation error handler.
Definition error_handlers.h:119
View-level error handler.
Definition error_handlers.h:95
JSON error payload returned in a response with further details on the error.
Definition types.h:55