use thiserror::Error;
pub type WaversResult<T> = Result<T, WaversError>;
#[derive(Error, Debug)]
pub enum WaversError {
#[error("Invalid type specified: {0}")]
InvalidType(String),
#[error("IO error with file")]
IOError(#[from] std::io::Error),
#[cfg(feature = "ndarray")]
#[error("IO error with ndarray")]
NdArrayError(#[from] ndarray::ShapeError),
}