#[non_exhaustive]pub enum PatternError<E> {
Domain(E),
Journal(JournalError),
Ask(AskError),
Codec(String),
Invariant(String),
NotConfigured(&'static str),
Intercepted(String),
ConcurrencyConflict {
expected: u64,
actual: u64,
},
ReplyDropped,
}Expand description
Errors raised by pattern-level operations.
Generic over the user’s domain error E. Mirrors the shape of
atomr_persistence::EventsourcedError so downstream code can
pattern-match consistently.
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.
Domain(E)
Journal(JournalError)
Ask(AskError)
Codec(String)
Invariant(String)
NotConfigured(&'static str)
Intercepted(String)
ConcurrencyConflict
ReplyDropped
Trait Implementations§
Source§impl<E: Debug> Debug for PatternError<E>
impl<E: Debug> Debug for PatternError<E>
Source§impl<E> Display for PatternError<E>where
E: Display,
impl<E> Display for PatternError<E>where
E: Display,
Source§impl<E> Error for PatternError<E>
impl<E> Error for PatternError<E>
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<E> From<AskError> for PatternError<E>
impl<E> From<AskError> for PatternError<E>
Source§impl<E> From<JournalError> for PatternError<E>
impl<E> From<JournalError> for PatternError<E>
Source§fn from(source: JournalError) -> Self
fn from(source: JournalError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<E> Freeze for PatternError<E>where
E: Freeze,
impl<E> RefUnwindSafe for PatternError<E>where
E: RefUnwindSafe,
impl<E> Send for PatternError<E>where
E: Send,
impl<E> Sync for PatternError<E>where
E: Sync,
impl<E> Unpin for PatternError<E>where
E: Unpin,
impl<E> UnsafeUnpin for PatternError<E>where
E: UnsafeUnpin,
impl<E> UnwindSafe for PatternError<E>where
E: 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