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
Responsehas already finished. Polling it afterwards will cause this error.- DbError
- A Postgres error or notice.
- Driver
Down - error indicate
Client’sDriveris 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=1env 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
NULLPostgres value was passed to aFromSqlimplementation that does not supportNULLvalues. - 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
Configfail 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