[][src]Function sentry_failure::exception_from_single_fail

pub fn exception_from_single_fail<F: Fail + ?Sized>(
    f: &F,
    bt: Option<&Backtrace>
) -> Exception
👎 Deprecated:

The failure integration is deprecated and will be removed in the future.

This converts a single fail instance into an exception.

This is typically not very useful as the event_from_error and event_from_fail methods will assemble an entire event with all the causes of a failure, however for certain more complex situations where fails are contained within a non fail error type that might also carry useful information it can be useful to call this method instead.