Skip to content

Commit 72b4932

Browse files
committed
1
1 parent a81067e commit 72b4932

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

crates/catalog/rest/src/error_handlers.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,12 @@ use reqwest::StatusCode;
3131
use crate::types::ErrorResponse;
3232

3333
/// Trait for handling REST API error responses and converting to semantic errors.
34-
///
35-
/// Error handlers process HTTP error responses and map them to appropriate
36-
/// `iceberg::Error` instances with correct error kinds and context.
3734
pub trait ErrorHandler: Send + Sync {
3835
/// Process an error response and convert to iceberg::Error.
3936
fn handle(&self, code: StatusCode, response: &ErrorResponse) -> Error;
4037
}
4138

42-
/// Default error handler for common HTTP status codes per REST spec.
39+
/// Default error handler for common HTTP error responses.
4340
#[derive(Debug, Default, Clone, Copy)]
4441
pub struct DefaultErrorHandler;
4542

0 commit comments

Comments
 (0)