blueprint-clients 0.2.0-alpha.13

Metapackage for Tangle Blueprint clients
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#[derive(thiserror::Error, Debug)]
pub enum Error {
    #[error(transparent)]
    Core(#[from] blueprint_client_core::error::Error),
    #[error(transparent)]
    #[cfg(feature = "evm")]
    Evm(#[from] blueprint_client_evm::error::Error),
}

impl Error {
    pub fn msg<T: blueprint_std::fmt::Debug>(msg: T) -> Self {
        let err = blueprint_client_core::error::Error::msg(msg);
        Error::Core(err)
    }
}