use ayun_core::{error::ContainerError, traits::ErrorTrait, AnyError};
use thiserror::Error;
#[derive(Error, Debug)]
pub enum Error {
#[error(transparent)]
Any(#[from] AnyError),
#[error(transparent)]
Container(#[from] ContainerError),
#[error(transparent)]
Io(#[from] std::io::Error),
#[error("{0}")]
Message(String),
#[error(transparent)]
TomlDeserialize(#[from] toml::de::Error),
#[error(transparent)]
TomlSerialize(#[from] toml::ser::Error),
}
impl ErrorTrait for Error {}