pub enum ViewError {
Show 13 variants
StaleHead {
target: String,
expected: Option<ContentHash>,
actual: Option<ContentHash>,
},
Decode(String),
Log(LogError),
Store(StoreError),
Review(String),
Provenance(String),
Check(String),
Change(String),
Identity(String),
Snapshot(String),
Resolution(String),
Vouch(String),
Witness(String),
}Expand description
Failure modes of view folding and commit storage.
Variants§
StaleHead
CAS failure: prev did not match the current head/target.
Fields
expected: Option<ContentHash>What the op expected the current value to be.
actual: Option<ContentHash>What the view actually held.
Decode(String)
Payload or stored commit bytes failed to decode.
Log(LogError)
Underlying op-log failure.
Store(StoreError)
Underlying chunk-store failure.
Review(String)
Review-op precondition failure (duplicate id, unknown review, or a reviewer not on the review’s list).
Provenance(String)
Provenance-record precondition failure (empty subject or kind).
Check(String)
Check-report precondition failure: an empty name or reporter, or a name carrying the key separator.
Change(String)
Change lifecycle precondition failure (duplicate identity, invalid binding, unknown/archived change, or no-op checkpoint).
Identity(String)
Key-binding precondition failure: an empty or /-bearing
operator, a channel that reads as a different operator, a key
already bound elsewhere, or a revoked/unbound key.
Snapshot(String)
Ref-snapshot precondition failure: the claimed ref map does not match the view, the claimed position is not the fold position, or the chain pointer does not name the latest admitted snapshot.
Resolution(String)
Resolution-link precondition failure: Commit::resolves names
a commit the store does not hold, or one with nothing to resolve.
Vouch(String)
Vouch precondition failure (D65): an end that is not an operator with an unrevoked binding, a self-vouch, an edge that already stands, or a withdrawal of one that does not.
Witness(String)
Witness precondition failure (D67): a witness with no live key binding, a cosignature over anything but the latest ref-state attestation, or one that witness has already made.