sentry-error-chain

Crates.iosentry-error-chain
lib.rssentry-error-chain
version0.21.0
sourcesrc
created_at2020-06-18 13:47:39.548018
updated_at2020-11-12 13:43:20.288966
descriptionSentry integration that allows capturing error-chain errors.
homepagehttps://sentry.io/welcome/
repositoryhttps://github.com/getsentry/sentry-rust
max_upload_size
id255337
size6,430
Sentry Bot (getsentry-bot)

documentation

README

Sentry Rust SDK: 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);
    }
};

Resources

License: Apache-2.0

Commit count: 1030

cargo fmt