pub enum CommandError<AggregateError, ConcurrencyError, StoreError, SnapshotError>where
ConcurrencyError: Error + 'static,
StoreError: Error + 'static,
SnapshotError: Error + 'static,{
Aggregate(AggregateError),
Concurrency(ConcurrencyError),
Projection(ProjectionError<StoreError>),
Store(StoreError),
Snapshot(SnapshotError),
}Expand description
Error type for command execution across all repository modes.
Variants§
Aggregate(AggregateError)
Concurrency(ConcurrencyError)
Projection(ProjectionError<StoreError>)
Store(StoreError)
Snapshot(SnapshotError)
Trait Implementations§
Source§impl<AggregateError: Debug, ConcurrencyError, StoreError, SnapshotError> Debug for CommandError<AggregateError, ConcurrencyError, StoreError, SnapshotError>
impl<AggregateError: Debug, ConcurrencyError, StoreError, SnapshotError> Debug for CommandError<AggregateError, ConcurrencyError, StoreError, SnapshotError>
Source§impl<AggregateError, ConcurrencyError, StoreError, SnapshotError> Display for CommandError<AggregateError, ConcurrencyError, StoreError, SnapshotError>
impl<AggregateError, ConcurrencyError, StoreError, SnapshotError> Display for CommandError<AggregateError, ConcurrencyError, StoreError, SnapshotError>
Source§impl<AggregateError, ConcurrencyError, StoreError, SnapshotError> Error for CommandError<AggregateError, ConcurrencyError, StoreError, SnapshotError>
impl<AggregateError, ConcurrencyError, StoreError, SnapshotError> Error for CommandError<AggregateError, ConcurrencyError, StoreError, SnapshotError>
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()
Auto Trait Implementations§
impl<AggregateError, ConcurrencyError, StoreError, SnapshotError> Freeze for CommandError<AggregateError, ConcurrencyError, StoreError, SnapshotError>
impl<AggregateError, ConcurrencyError, StoreError, SnapshotError> RefUnwindSafe for CommandError<AggregateError, ConcurrencyError, StoreError, SnapshotError>where
AggregateError: RefUnwindSafe,
ConcurrencyError: RefUnwindSafe,
StoreError: RefUnwindSafe,
SnapshotError: RefUnwindSafe,
impl<AggregateError, ConcurrencyError, StoreError, SnapshotError> Send for CommandError<AggregateError, ConcurrencyError, StoreError, SnapshotError>
impl<AggregateError, ConcurrencyError, StoreError, SnapshotError> Sync for CommandError<AggregateError, ConcurrencyError, StoreError, SnapshotError>
impl<AggregateError, ConcurrencyError, StoreError, SnapshotError> Unpin for CommandError<AggregateError, ConcurrencyError, StoreError, SnapshotError>
impl<AggregateError, ConcurrencyError, StoreError, SnapshotError> UnwindSafe for CommandError<AggregateError, ConcurrencyError, StoreError, SnapshotError>where
AggregateError: UnwindSafe,
ConcurrencyError: UnwindSafe,
StoreError: UnwindSafe,
SnapshotError: UnwindSafe,
Blanket Implementations§
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