#[non_exhaustive]pub enum TableStoreError {
ConcurrencyConflict {
collection: String,
id: String,
expected: u64,
actual: u64,
},
Serde(String),
Storage(String),
BackendStorage {
operation: String,
retryable: bool,
message: String,
},
CausalWriteRequired {
table: String,
},
NotFound {
collection: String,
id: String,
},
Lock(LockError),
Metadata(String),
}Expand description
Error type for table-store and read-model operations.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ConcurrencyConflict
Optimistic concurrency conflict.
Serde(String)
Serialization/deserialization error.
Storage(String)
Storage-level error.
BackendStorage
Backend storage failure with its retry classification preserved.
SQL adapters use this instead of flattening a driver error into
Storage, because projector runners must distinguish a
transient busy/deadlock/connection failure from a deterministic fault
before deciding whether terminal failure evidence may be recorded.
CausalWriteRequired
A raw/legacy write targeted a table registered to the causal projection protocol and therefore cannot mint the required revision evidence.
NotFound
Row not found.
Lock(LockError)
Lock error.
Metadata(String)
Schema/metadata error.
Trait Implementations§
Source§impl Clone for TableStoreError
impl Clone for TableStoreError
Source§fn clone(&self) -> TableStoreError
fn clone(&self) -> TableStoreError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TableStoreError
impl Debug for TableStoreError
Source§impl Display for TableStoreError
impl Display for TableStoreError
impl Eq for TableStoreError
Source§impl Error for TableStoreError
impl Error for TableStoreError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<LockError> for TableStoreError
impl From<LockError> for TableStoreError
Source§impl From<TableStoreError> for RepositoryError
impl From<TableStoreError> for RepositoryError
Source§fn from(err: TableStoreError) -> Self
fn from(err: TableStoreError) -> Self
Converts to this type from the input type.
Source§impl From<TableStoreError> for HandlerError
impl From<TableStoreError> for HandlerError
Source§fn from(error: TableStoreError) -> Self
fn from(error: TableStoreError) -> Self
Converts to this type from the input type.
Source§impl From<TableStoreError> for ProjectionLoweringError
impl From<TableStoreError> for ProjectionLoweringError
Source§fn from(error: TableStoreError) -> Self
fn from(error: TableStoreError) -> Self
Converts to this type from the input type.
Source§impl From<TableStoreError> for ProjectionProtocolError
impl From<TableStoreError> for ProjectionProtocolError
Source§fn from(error: TableStoreError) -> Self
fn from(error: TableStoreError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for TableStoreError
impl PartialEq for TableStoreError
impl StructuralPartialEq for TableStoreError
Auto Trait Implementations§
impl Freeze for TableStoreError
impl RefUnwindSafe for TableStoreError
impl Send for TableStoreError
impl Sync for TableStoreError
impl Unpin for TableStoreError
impl UnsafeUnpin for TableStoreError
impl UnwindSafe for TableStoreError
Blanket Implementations§
Source§impl<T> AggregateBuilder for T
impl<T> AggregateBuilder for T
fn aggregate<A: Aggregate>(self) -> AggregateRepository<Self, A>
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Queueable for T
impl<T> Queueable for T
Source§fn queued(self) -> QueuedRepository<Self, InMemoryLockManager>
fn queued(self) -> QueuedRepository<Self, InMemoryLockManager>
Wrap with the default async lock manager. Pair with
.aggregate::<T>() for per-aggregate serialization over the async
repository surface.Source§fn queued_with<L: LockManager>(
self,
lock_manager: L,
) -> QueuedRepository<Self, L>
fn queued_with<L: LockManager>( self, lock_manager: L, ) -> QueuedRepository<Self, L>
Wrap with a custom async lock manager.