#[derive(Debug, thiserror::Error)]
pub enum FmtError {
#[error("parse error: {0}")]
ParseError(String),
#[error("not found")]
NotFound,
#[error("custom error: {0}")]
Custom(&'static str),
#[error("io error: {0}")]
Io(#[from] std::io::Error),
#[cfg(feature = "fs")]
#[error("sandbox violation")]
SandboxViolation,
#[cfg(feature = "validate")]
#[error("validation failed: {0}")]
Validation(#[from] validator::ValidationErrors),
}