Expand description
Adds support for capturing Sentry errors from failure
types.
Failure errors and Fail
objects can be logged with the failure integration.
This works really well if you use the failure::Error
type or if you have
failure::Fail
objects that use the failure context internally to gain a
backtrace.
§Example
use sentry_failure::capture_error;
let result = match function_that_might_fail() {
Ok(result) => result,
Err(err) => {
capture_error(&err);
return Err(err);
}
};
To capture fails and not errors use capture_fail
.
Structs§
- Failure
Integration Deprecated - The Sentry Failure Integration.
Traits§
- Failure
HubExt Deprecated - Hub extension methods for working with failure.
- Failure
Result Ext Deprecated - Extension trait providing methods to unwrap a result, preserving backtraces from the underlying error in the event of a panic.
Functions§
- capture_
error Deprecated - Captures a boxed failure (
failure::Error
). - capture_
fail Deprecated - Captures a
failure::Fail
. - event_
from_ error Deprecated - Helper function to create an event from a
failure::Error
. - event_
from_ fail Deprecated - Helper function to create an event from a
failure::Fail
. - exception_
from_ single_ fail Deprecated - This converts a single fail instance into an exception.
- panic_
extractor Deprecated - Extracts a Sentry
Event
from aPanicInfo
.