ckb_error/
convert.rs

1
2
3
4
5
6
7
8
9
10
11
use crate::{
    impl_error_conversion_with_adaptor, impl_error_conversion_with_kind, Error, InternalError,
    InternalErrorKind,
};

impl_error_conversion_with_kind!(
    ckb_occupied_capacity::Error,
    InternalErrorKind::CapacityOverflow,
    InternalError
);
impl_error_conversion_with_adaptor!(ckb_occupied_capacity::Error, InternalError, Error);