blueprint_clients/
error.rs

1#[derive(thiserror::Error, Debug)]
2pub enum Error {
3    #[error(transparent)]
4    Core(#[from] blueprint_client_core::error::Error),
5    #[error(transparent)]
6    #[cfg(feature = "eigenlayer")]
7    Eigenlayer(#[from] blueprint_client_eigenlayer::error::Error),
8    #[error(transparent)]
9    #[cfg(feature = "evm")]
10    Evm(#[from] blueprint_client_evm::error::Error),
11    #[error(transparent)]
12    #[cfg(feature = "tangle")]
13    Tangle(#[from] blueprint_client_tangle::error::Error),
14}
15
16impl Error {
17    pub fn msg<T: blueprint_std::fmt::Debug>(msg: T) -> Self {
18        let err = blueprint_client_core::error::Error::msg(msg);
19        Error::Core(err)
20    }
21}