Enum eventsourced_postgres::Error
source · pub enum Error {
ConnectionManager(Error),
ConnectionPool(Error),
GetConnection(RunError<Error>),
PrepareStmt(Error),
StartTx(Error),
CommitTx(Error),
ExecuteStmt(Error),
ToBytes(Box<dyn Error + Send + Sync + 'static>),
FromBytes(Box<dyn Error + Send + Sync + 'static>),
NextRow(Error),
ColumnAsUuid(Error),
}
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.
PrepareStmt(Error)
Cannot prepare statement.
StartTx(Error)
Cannot start transaction.
CommitTx(Error)
Cannot commit transaction.
ExecuteStmt(Error)
Cannot execute statement.
ToBytes(Box<dyn Error + Send + Sync + 'static>)
Cannot convert events to bytes.
FromBytes(Box<dyn Error + Send + Sync + 'static>)
Cannot convert bytes to events.
NextRow(Error)
Cannot get next row.
ColumnAsUuid(Error)
Cannot get column as Uuid.
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()