iceberg-cpp
Loading...
Searching...
No Matches
Public Member Functions | List of all members
iceberg::rest::ErrorHandler Class Referenceabstract

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>

Inheritance diagram for iceberg::rest::ErrorHandler:
iceberg::rest::DefaultErrorHandler iceberg::rest::OAuthErrorHandler iceberg::rest::ConfigErrorHandler iceberg::rest::NamespaceErrorHandler iceberg::rest::PlanErrorHandler iceberg::rest::PlanTaskErrorHandler iceberg::rest::TableCommitErrorHandler iceberg::rest::TableErrorHandler iceberg::rest::ViewCommitErrorHandler iceberg::rest::ViewErrorHandler

Public Member Functions

virtual Status Accept (const ErrorResponse &error) const =0
 Process an error response and return an appropriate Error.
 
virtual Result< ErrorResponseParseResponse (uint32_t code, const std::string &text) const =0
 Parse an HTTP error response body.
 

Detailed Description

Error handler interface for processing REST API error responses. Maps HTTP status codes to appropriate ErrorKind values following the Iceberg REST specification.

Member Function Documentation

◆ Accept()

virtual Status iceberg::rest::ErrorHandler::Accept ( const ErrorResponse error) const
pure virtual

◆ ParseResponse()

virtual Result< ErrorResponse > iceberg::rest::ErrorHandler::ParseResponse ( uint32_t  code,
const std::string &  text 
) const
pure virtual

Parse an HTTP error response body.

Parameters
codeThe HTTP status code from the failed response
textThe HTTP response body
Returns
The parsed error response

Implemented in iceberg::rest::DefaultErrorHandler, and iceberg::rest::OAuthErrorHandler.


The documentation for this class was generated from the following file: