pub enum DeltaBackendError {
NotFound(String),
NotFoundGeneric(String),
AlreadyExists(String),
PermissionDenied(String),
Unauthenticated(String),
InvalidArgument(String),
CommitVersionConflict(String),
UpdateRequirementConflict(String),
ResourceExhausted(String),
NotImplemented(&'static str),
Internal(String),
}Expand description
Error returned by a DeltaBackend operation.
Each variant has a fixed (StatusCode, DeltaErrorType) target, applied by
DeltaApiError’s IntoResponse. A server adapter converts its internal
error into one of these variants, preserving the response semantics without
exposing its own error type to the crate.
Variants§
NotFound(String)
The requested resource does not exist. → 404 NoSuchTableException.
NotFoundGeneric(String)
A backend failure with no recognized semantics, surfaced as a generic
not-found. → 404 NotFoundException.
AlreadyExists(String)
A resource with the same identity already exists. → 409 AlreadyExistsException.
PermissionDenied(String)
The caller is authenticated but not permitted. → 403 PermissionDeniedException.
Unauthenticated(String)
The caller is not authenticated. → 401 NotAuthorizedException.
InvalidArgument(String)
The request is malformed or a parameter is invalid. → 400 InvalidParameterValueException.
CommitVersionConflict(String)
A commit lost the version race / was already accepted. → 409 CommitVersionConflictException.
UpdateRequirementConflict(String)
An assert-etag / assert-table-uuid requirement was not met. → 409 UpdateRequirementConflictException.
ResourceExhausted(String)
The request was throttled or hit a resource limit. → 429 ResourceExhaustedException.
NotImplemented(&'static str)
The requested functionality is not implemented. → 501 NotImplementedException.
Internal(String)
An unexpected backend failure. → 500 InternalServerErrorException.
Trait Implementations§
Source§impl Debug for DeltaBackendError
impl Debug for DeltaBackendError
Source§impl Display for DeltaBackendError
impl Display for DeltaBackendError
Source§impl Error for DeltaBackendError
impl Error for DeltaBackendError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()