#[non_exhaustive]pub enum StoreError {
ManifestNotFound {
id: String,
},
ObjectNotFound {
checksum: String,
},
Integrity {
address: String,
expected: String,
actual: String,
},
Parse(ParseError),
Io(Error),
Backend {
message: String,
source: Option<Box<dyn Error + Send + Sync + 'static>>,
},
}Expand description
Errors a Store backend can surface.
Backends wrap their own failure types (filesystem I/O, HTTP/SDK errors, integrity mismatches) into these variants. The orchestrator matches on the variant, not the wrapped cause, so behavior stays backend-agnostic.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
ManifestNotFound
The requested manifest (by snapshot id) was not present in the store.
ObjectNotFound
A content object referenced by a manifest was not present in the store.
Integrity
Stored bytes did not hash to the address they were filed under (object checksum or manifest snapshot id mismatch) — the blob is corrupt or tampered.
Fields
Parse(ParseError)
A manifest’s text could not be parsed into a Manifest.
Io(Error)
An underlying I/O failure (filesystem, network, SDK).
Backend
A backend-specific failure that does not fit the typed variants above (e.g. an SDK error from a network store). Carries a human-readable message and an optional source.
Trait Implementations§
Source§impl Debug for StoreError
impl Debug for StoreError
Source§impl Display for StoreError
impl Display for StoreError
Source§impl Error for StoreError
impl Error for StoreError
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()