1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use std::path::PathBuf;
use thiserror::Error;

pub type ConductorConfigResult<T> = Result<T, ConductorConfigError>;

#[derive(Error, Debug)]
pub enum ConductorConfigError {
    #[error("No conductor config found at this path: {0}")]
    ConfigMissing(PathBuf),

    #[error("Config deserialization error: {0}")]
    SerializationError(#[from] serde_yaml::Error),

    #[error("Error while performing IO for the Conductor: {0}")]
    IoError(#[from] std::io::Error),
}