53 const std::string& text)
const = 0;
60 static const std::shared_ptr<DefaultErrorHandler>&
Instance();
64 const std::string& text)
const override;
74 static const std::shared_ptr<NamespaceErrorHandler>&
Instance();
86 static const std::shared_ptr<DropNamespaceErrorHandler>&
Instance();
98 static const std::shared_ptr<ConfigErrorHandler>&
Instance();
110 static const std::shared_ptr<TableErrorHandler>&
Instance();
122 static const std::shared_ptr<TableCommitErrorHandler>&
Instance();
134 static const std::shared_ptr<CreateTableErrorHandler>&
Instance();
146 static const std::shared_ptr<ViewErrorHandler>&
Instance();
158 static const std::shared_ptr<ViewCommitErrorHandler>&
Instance();
169 static const std::shared_ptr<PlanErrorHandler>& Instance();
180 static const std::shared_ptr<PlanTaskErrorHandler>& Instance();
191 static const std::shared_ptr<OAuthErrorHandler>& Instance();
195 const std::string& text)
const override;
Error handler for the catalog config endpoint.
Definition error_handlers.h:95
Status Accept(const ErrorResponse &error) const override
Process an error response and return an appropriate Error.
static const std::shared_ptr< ConfigErrorHandler > & Instance()
Returns the singleton instance.
Table create commit operation error handler.
Definition error_handlers.h:131
static const std::shared_ptr< CreateTableErrorHandler > & Instance()
Returns the singleton instance.
Status Accept(const ErrorResponse &error) const override
Process an error response and return an appropriate Error.
Default error handler for REST API responses.
Definition error_handlers.h:57
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 const std::shared_ptr< DefaultErrorHandler > & Instance()
Returns the singleton instance.
Error handler for drop namespace operations.
Definition error_handlers.h:83
static const std::shared_ptr< DropNamespaceErrorHandler > & Instance()
Returns the singleton instance.
Status Accept(const ErrorResponse &error) const override
Process an error response and return an appropriate Error.
Error handler interface for processing REST API error responses. Maps HTTP status codes to appropriat...
Definition error_handlers.h:37
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.
Namespace-specific error handler for create/read/update operations.
Definition error_handlers.h:71
Status Accept(const ErrorResponse &error) const override
Process an error response and return an appropriate Error.
static const std::shared_ptr< NamespaceErrorHandler > & Instance()
Returns the singleton instance.
OAuth token endpoint error handler.
Definition error_handlers.h:189
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.
Plan operation error handler.
Definition error_handlers.h:167
Status Accept(const ErrorResponse &error) const override
Process an error response and return an appropriate Error.
Fetch scan tasks operation error handler.
Definition error_handlers.h:178
Status Accept(const ErrorResponse &error) const override
Process an error response and return an appropriate Error.
Table commit operation error handler.
Definition error_handlers.h:119
Status Accept(const ErrorResponse &error) const override
Process an error response and return an appropriate Error.
static const std::shared_ptr< TableCommitErrorHandler > & Instance()
Returns the singleton instance.
Table-level error handler.
Definition error_handlers.h:107
static const std::shared_ptr< TableErrorHandler > & Instance()
Returns the singleton instance.
Status Accept(const ErrorResponse &error) const override
Process an error response and return an appropriate Error.
View commit operation error handler.
Definition error_handlers.h:155
Status Accept(const ErrorResponse &error) const override
Process an error response and return an appropriate Error.
static const std::shared_ptr< ViewCommitErrorHandler > & Instance()
Returns the singleton instance.
View-level error handler.
Definition error_handlers.h:143
static const std::shared_ptr< ViewErrorHandler > & Instance()
Returns the singleton instance.
Status Accept(const ErrorResponse &error) const override
Process an error response and return an appropriate Error.
Define symbol visibility macros for the REST catalog library.
REST catalog APIs.
Definition auth_manager.h:34
std::expected< T, E > Result
Result alias.
Definition result.h:88
Define Result, Status, and error helpers.
JSON error payload returned in a response with further details on the error.
Definition types.h:67