use thiserror::Error;
#[derive(Error, Debug)]
pub enum Error {
#[error("IO Error")]
IoError(#[from] std::io::Error),
#[error("HTTP Error")]
NetworkError(#[from] reqwest::Error),
#[error("Image Error")]
ImageError(#[from] image::ImageError),
#[error("Json Serialization Error")]
JsonError(#[from] serde_json::Error),
#[error("Layout Error")]
LayoutError(#[from] taffy::TaffyError),
#[error("String translation Error")]
Utf8Error(#[from] std::string::FromUtf8Error),
#[error("Figma Document Load Error")]
DocumentLoadError(String),
#[error("Error with DC Bundle")]
DCBundleError(#[from] dc_bundle::Error),
}