1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use chain_core::property::ReadError;
use jormungandr_lib::interfaces::Block0ConfigurationError;
use thiserror::Error;

#[derive(Debug, Error)]
pub enum Error {
    #[error("IO error: {0}")]
    IO(#[from] std::io::Error),
    #[error("Read error: {0}")]
    Read(#[from] ReadError),
    #[error("Could not parse YAML file: {0}")]
    Yaml(#[from] serde_yaml::Error),
    #[error("Block0 error: {0}")]
    Block0(#[from] Block0ConfigurationError),
}