#[derive(Debug)]
pub enum FilterError {
    FilterDesignError,
    FilterApplyError
}
use std::fmt;

impl fmt::Display for FilterError {
    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
        match self {
            FilterError::FilterDesignError => write!(f, "Failed to design the filter"),
            FilterError::FilterApplyError => write!(f, "Failed to apply the filter to the data"),
        }
    }
}

impl std::error::Error for FilterError {}