use thiserror::Error;
#[derive(Debug, Error)]
pub enum SecParError {
#[error("Secret/Parameter Not Found: {0}")]
NotFound(String),
#[error("Failed to create secret/parameter: {0}")]
CreateFail(String),
#[error("Failed to parse spec file")]
InvalidSpec(#[from] ParseFileError),
}
#[derive(Debug, Error)]
pub enum ParseFileError {
#[error("Path: `{0}`")]
NoSuchFile(String, #[source] std::io::Error),
#[error("Path: `{0}`")]
DeserializeError(String, #[source] serde_yaml::Error),
}