Module error

Source
Expand description

library error types with re-export error from rust-postgres

this crate only exposes a single Error type from API where type erase is used to hide complexity

Structs§

Completed
Response has already finished. Polling it afterwards will cause this error.
DbError
A Postgres error or notice.
DriverDown
error indicate Client’s Driver is dropped and can’t be accessed anymore when sending request to driver.
DriverDownReceiving
error indicate Client’s Driver is dropped and can’t be accessed anymore when receiving response from server.
DriverIoErrorMulti
driver shutdown outcome can contain multiple io error for detailed read/write errors.
Error
public facing error type. providing basic format and display based error handling.
InvalidColumnIndex
InvalidParamCount
SqlState
A SQLSTATE error code
ToDo
work in progress error type with thread backtrace. use RUST_BACKTRACE=1 env when starting your program to enable capture and format
UnexpectedMessage
error for database returning backend message type that is not expected. it indicates there might be protocol error on either side of the connection.
WasNull
An error indicating that a NULL Postgres value was passed to a FromSql implementation that does not support NULL values.
WrongType
An error indicating that a conversion was attempted between incompatible Rust and Postgres types.

Enums§

AuthenticationError
error happens when library user failed to provide valid authentication info to database server.
ConfigError
error happens when Config fail to provide necessary information.
ErrorPosition
Represents the position of an error in a query.
FeatureError
RuntimeError
Severity
The severity of a Postgres error or notice.
SystemError