ckb-sentry-error-chain

Crates.iockb-sentry-error-chain
lib.rsckb-sentry-error-chain
version0.21.0
sourcesrc
created_at2020-12-16 05:21:03.990796
updated_at2020-12-16 05:21:03.990796
descriptionSentry integration that allows capturing error-chain errors.
homepage
repositoryhttps://github.com/nervosnetwork/sentry-rust
max_upload_size
id323486
size6,623
ian (doitian)

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: 735

cargo fmt