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.
- Driver
Down - error indicate
Client
’sDriver
is dropped and can’t be accessed anymore when sending request to driver. - Driver
Down Receiving - error indicate Client’s Driver is dropped and can’t be accessed anymore when receiving response from server.
- Driver
IoError Multi - 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.
- Invalid
Column Index - Invalid
Param Count - 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 - Unexpected
Message - 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 aFromSql
implementation that does not supportNULL
values. - Wrong
Type - An error indicating that a conversion was attempted between incompatible Rust and Postgres types.
Enums§
- Authentication
Error - error happens when library user failed to provide valid authentication info to database server.
- Config
Error - error happens when
Config
fail to provide necessary information. - Error
Position - Represents the position of an error in a query.
- Feature
Error - Runtime
Error - Severity
- The severity of a Postgres error or notice.
- System
Error