pub enum StoreError {
SequenceConflict {
expected: u64,
found: u64,
},
NotFound {
workflow_id: WorkflowId,
},
NotOwner {
shard: usize,
},
Backend(String),
Serialization(String),
}Expand description
Errors returned by crate::ReadableEventStore and crate::EventStore implementations.
Variants§
SequenceConflict
The workflow history head did not match the caller’s optimistic-concurrency guard.
Fields
NotFound
Reserved for operations that target a must-exist workflow; read and query methods return
empty results, not NotFound, for absent workflows.
Fields
workflow_id: WorkflowIdWorkflow identifier targeted by the must-exist operation.
NotOwner
The targeted shard is owned by a different node: a quorum write was fenced
because this node is not the current owner of the workflow’s shard. Unlike
Self::Backend this is a typed, retryable routing signal — the caller
(or the request-routing edge) should re-resolve the shard’s owner and retry
or forward, rather than treating it as an opaque internal failure. Emitted
only on the distributed ([store.cluster]) replication path.
Backend(String)
Backend-specific failure mapped into the store contract’s closed error surface.
Serialization(String)
Serialization or deserialization failure while crossing the store boundary.
Trait Implementations§
Source§impl Clone for StoreError
impl Clone for StoreError
Source§fn clone(&self) -> StoreError
fn clone(&self) -> StoreError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for StoreError
impl Debug for StoreError
Source§impl Display for StoreError
impl Display for StoreError
impl Eq for StoreError
Source§impl Error for StoreError
impl Error for StoreError
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()