pub fn from_pg(error: &Error) -> DbError
The server’s error fields when Postgres reported one; otherwise the failure is the connection’s (closed socket, I/O, protocol).