IcebergException class sealed

Error thrown by IcebergRestCatalog operations when the Iceberg REST Catalog API returns an error response or a request fails at the network level.

This is a sealed hierarchy: match on the concrete subtype to handle a specific failure, for example

try {
  await catalog.loadTable(id);
} on IcebergNotFoundException {
  // the table does not exist
} on IcebergException catch (error) {
  // any other Iceberg failure
}
Implemented types

Constructors

IcebergException.fromResponse(int statusCode, Object? body)
Builds the appropriate IcebergException subtype from an error response.
factory

Properties

code → int?
The Iceberg error code reported by the server.
final
details → Object?
The raw error payload, when available.
final
hashCode → int
The hash code for this object.
no setterinherited
message → String
Human readable error message.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
statusCode → int
The HTTP status code of the response. 0 indicates a network level failure before a response was received.
final
type → String?
The Iceberg error type reported by the server, for example NoSuchTableException.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited