use std::path::PathBuf;
use thiserror::Error;
#[derive(Debug, Error)]
#[non_exhaustive]
pub enum Error {
#[error("File {:?} is not a XML file.", 0)]
InvalidFileType(PathBuf),
#[error("File was not found at the specified path: {:?}.", 0)]
FileNotFound(PathBuf),
#[error(transparent)]
IO(#[from] std::io::Error),
#[error(transparent)]
ParsingError(#[from] quick_xml::de::DeError),
#[error("Unknown error")]
Unknown,
}