hopr_chain_config/errors.rs
1use thiserror::Error;
2
3/// Error representing all possible erroneous states of the HOPR config.
4#[derive(Error, Debug)]
5pub enum HoprConfigError {
6 #[error("configuration error: {0}")]
7 Configuration(String),
8
9 #[error("unsupported network error: {0}")]
10 UnsupportedNetwork(String),
11}
12
13/// The default [Result] object translating errors in the [HoprConfigError] type
14pub type Result<T> = core::result::Result<T, HoprConfigError>;