Enum eventsourced_postgres::Error
source · pub enum Error {
ConnectionManager(Error),
ConnectionPool(Error),
GetConnection(RunError<Error>),
ExecuteQuery(Error),
ToBytes(Box<dyn Error + Send + Sync + 'static>),
FromBytes(Box<dyn Error + Send + Sync + 'static>),
NextRow(Error),
ColumnAsUuid(Error),
InvalidSeqNo(TrySeqNoFromZero),
}
Expand description
Errors from the PostgresEvtLog or PostgresSnapshotStore.
Variants§
ConnectionManager(Error)
Cannot create connection manager.
ConnectionPool(Error)
Cannot create connection pool.
GetConnection(RunError<Error>)
Cannot get connection from pool.
ExecuteQuery(Error)
Cannot execute query.
ToBytes(Box<dyn Error + Send + Sync + 'static>)
Cannot convert an event to bytes.
FromBytes(Box<dyn Error + Send + Sync + 'static>)
Cannot convert bytes to an event.
NextRow(Error)
Cannot get next row.
ColumnAsUuid(Error)
Cannot get column as Uuid.
InvalidSeqNo(TrySeqNoFromZero)
Invalid sequence number.
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()