xitca_postgres

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§

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

Enums§