[][src]Crate sentry_error_chain

Adds support for the error-chain crate.

Errors created by the error-chain crate can be logged with the error_chain integration.

Example

use sentry_error_chain::{capture_error_chain, ErrorChainIntegration};
let _sentry =
    sentry::init(sentry::ClientOptions::default().add_integration(ErrorChainIntegration));
let result = match function_that_might_fail() {
    Ok(result) => result,
    Err(err) => {
        capture_error_chain(&err);
        return Err(err);
    }
};

Structs

ErrorChainIntegrationDeprecated

The Sentry error-chain Integration.

Traits

ErrorChainHubExtDeprecated

Hub extension methods for working with error chain

Functions

capture_error_chainDeprecated

Captures an error chain.

event_from_error_chainDeprecated

Creates an event from an error chain.