use thiserror::Error as ThisError;
#[derive(ThisError, Debug)]
#[allow(clippy::enum_variant_names)]
pub enum Error {
#[error("Filesize is null or too big.")]
BadFileSize,
#[error(transparent)]
IOError(#[from] std::io::Error),
#[error("Method not implemented yet")]
NotImplementedYet,
#[error("Invalid OLE File")]
InvalidOLEFile,
#[error("{0}")]
BadSizeValue(&'static str),
#[error("MSAT is empty")]
EmptyMasterSectorAllocationTable,
#[error("Sector is not a sector used by the SAT.")]
NotSectorUsedBySAT,
#[error("Unknown node type")]
NodeTypeUnknown,
#[error("Bad RootStorage size")]
BadRootStorageSize,
#[error("Empty entry")]
EmptyEntry,
}