#[derive(Debug, Clone, PartialEq, Eq)]
pub struct DivisionByZero;
impl std::fmt::Display for DivisionByZero {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "invalid division by zero attempted.")
}
}
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct NoDataError;
impl std::fmt::Display for NoDataError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "no data found. Was a file processed, yet?")
}
}