use thiserror::Error;
#[derive(Error, Debug)]
pub enum MaskitError {
#[error("Failed to read file: {0}")]
FileRead(String),
#[error("Failed to write file: {0}")]
FileWrite(String),
#[error("Unsupported file format: {0}")]
UnsupportedFormat(String),
#[error("Failed to parse {format}: {message}")]
ParseError { format: String, message: String },
#[error("Failed to serialize {format}: {message}")]
SerializeError { format: String, message: String },
#[error("Invalid file path: {0}")]
InvalidPath(String),
}
pub type Result<T> = std::result::Result<T, MaskitError>;