Skip to main content

capture_error_with_class

Function capture_error_with_class 

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

The same as capture_error, but for a &dyn std::error::Error (a Box<dyn Error>, a trait object) whose concrete type isn’t known at the call site, so exception_class has to be supplied explicitly rather than inferred.