Skip to main content

capture_error_with_class_and_sql

Function capture_error_with_class_and_sql 

Source
pub fn capture_error_with_class_and_sql(
    exception_class: &str,
    err: &dyn Error,
    statement: &str,
    context: HashMap<String, Value>,
    user: Option<HashMap<String, Value>>,
)
Expand description

The same as capture_error_with_sql, but for a &dyn std::error::Error whose concrete type isn’t known at the call site, so exception_class is supplied explicitly.