shapes_converter/
converter_error.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use std::{io, result};

use thiserror::Error;

pub type Result<T> = result::Result<T, ConverterError>;

#[derive(Error, Debug)]
pub enum ConverterError {
    #[error("Error reading config file from path {path}: {error}")]
    ConverterConfigFromPathError { path: String, error: io::Error },

    #[error("Error reading config file from path {path}: {error}")]
    ConverterConfigFromYAMLError {
        path: String,
        error: serde_yml::Error,
    },
}