use thiserror::Error;
#[derive(Debug, Error)]
pub enum Error {
#[error(transparent)]
IO(#[from] std::io::Error),
#[error(transparent)]
Gecol(#[from] gecol_core::Error),
#[error(transparent)]
TomlDe(#[from] toml::de::Error),
#[error(transparent)]
TomlSer(#[from] toml::ser::Error),
#[error("{0}")]
Msg(String),
}
impl From<String> for Error {
fn from(value: String) -> Self {
Self::Msg(value)
}
}
impl From<&str> for Error {
fn from(value: &str) -> Self {
Self::Msg(value.to_string())
}
}