Skip to main content

Module error

Module error 

Source
Expand description

Shared error type for every ObjectStore implementation.

Centralises the mapping of backend-specific failure codes onto a small, finite set of variants so higher layers (push, fetch, doctor, LFS) can pattern-match without caring whether the underlying SDK returned an aws_sdk_s3::error::SdkError or an azure_core::error::Error.

On the conditional-write path, S3 returns 412 (PreconditionFailed) and 409 (ConditionalRequestConflict) for the same If-None-Match: "*" contention path; both variants are kept here so backends can preserve the distinction in diagnostics, while the put_if_absent trait method collapses both into the Ok(false) “lock not acquired” return.

Enums§

ObjectStoreError
Errors returned by every ObjectStore method.

Type Aliases§

BoxError
Boxed source error used by ObjectStoreError::Network and ObjectStoreError::Other.