Skip to main content

box_foreign_error

Function box_foreign_error 

Source
fn box_foreign_error(
    e: impl Error + Send + Sync + 'static,
    connection: &str,
) -> BoxedError
Expand description

Boxes a foreign driver error into a [BoxedError]. The message is scrubbed: if the driver echoes the connection DSN (which carries the password), it is replaced by its redacted form so credentials never leak.