Enum disintegrate_postgres::Error
source · pub enum Error {
Database(Error),
Deserialization(Error),
QueryEventMapping(Box<dyn StdError + Send + Sync + 'static>),
Concurrency,
}
Expand description
Represents all the ways a method can fail within Disintegrate Postgres.
Variants§
Database(Error)
Error returned from the database.
Deserialization(Error)
An error occurred while deserializing an event payload.
QueryEventMapping(Box<dyn StdError + Send + Sync + 'static>)
An error occurred while mapping the event store event to the query event
Concurrency
This error indicates that another process has inserted a new event that was not included in the event stream query used to make the current business decision. The event store’s state has changed, potentially affecting the decision-making process.
Trait Implementations§
source§impl Error for Error
impl Error for Error
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
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