#[derive(Debug)]
pub enum SpectrumError {
FFTApplyError,
IFFTApplyError
}
use std::fmt;
impl fmt::Display for SpectrumError {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
match self {
SpectrumError::FFTApplyError => write!(f, "Failed to apply the fft to the data"),
SpectrumError::IFFTApplyError => write!(f, "Failed to apply the ifft to the data"),
}
}
}
impl std::error::Error for SpectrumError {}