ckb_error/convert.rs
1use crate::{
2 impl_error_conversion_with_adaptor, impl_error_conversion_with_kind, Error, InternalError,
3 InternalErrorKind,
4};
5
6impl_error_conversion_with_kind!(
7 ckb_occupied_capacity::Error,
8 InternalErrorKind::CapacityOverflow,
9 InternalError
10);
11impl_error_conversion_with_adaptor!(ckb_occupied_capacity::Error, InternalError, Error);