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::NamespaceErrorHandler iceberg::rest::TableCommitErrorHandler iceberg::rest::TableErrorHandler iceberg::rest::ViewCommitErrorHandler iceberg::rest::ViewErrorHandler iceberg::rest::DropNamespaceErrorHandler

Public Member Functions

virtual Status Accept (const ErrorResponse &error) const =0
 Process an error response and return an appropriate Error.
 

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

Process an error response and return an appropriate Error.

Parameters
errorThe error response parsed from the HTTP response body
Returns
An Error object with appropriate ErrorKind and message

Implemented in iceberg::rest::DefaultErrorHandler, iceberg::rest::NamespaceErrorHandler, iceberg::rest::DropNamespaceErrorHandler, iceberg::rest::TableErrorHandler, iceberg::rest::ViewErrorHandler, iceberg::rest::TableCommitErrorHandler, and iceberg::rest::ViewCommitErrorHandler.


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