pub trait ErrorHandler: Send + Sync {
// Provided method
fn on_error<C>(&self, _client: &C, _error: &mut PgWireError)
where C: ClientInfo { ... }
}Expand description
A centralized handler for all errors
This handler captures all errors produces by authentication, query and copy. You can do logging, filtering or masking the error before it sent to client.
Provided Methods§
fn on_error<C>(&self, _client: &C, _error: &mut PgWireError)where
C: ClientInfo,
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.