#[derive(Debug)]
pub enum FormatError {
CouldNotParseFormatType,
CouldNotDecomposeCoefficientExponent,
CouldNotCreateRegex,
CouldNotMatchRegex,
InvalidFormat(String),
EmptyData(String),
PolarsError(polars::prelude::PolarsError),
ColumnMissing(String),
UnsupportedDatatype(String),
MismatchedFormatType(String),
}
impl From<polars::prelude::PolarsError> for FormatError {
fn from(err: polars::prelude::PolarsError) -> FormatError {
FormatError::PolarsError(err)
}
}