etop_format/
exceptions.rs1#[derive(Debug)]
3pub enum FormatError {
4 CouldNotParseFormatType,
6 CouldNotDecomposeCoefficientExponent,
8 CouldNotCreateRegex,
10 CouldNotMatchRegex,
12 InvalidFormat(String),
14 EmptyData(String),
16 PolarsError(polars::prelude::PolarsError),
18 ColumnMissing(String),
20 UnsupportedDatatype(String),
22 MismatchedFormatType(String),
24}
25
26impl From<polars::prelude::PolarsError> for FormatError {
27 fn from(err: polars::prelude::PolarsError) -> FormatError {
28 FormatError::PolarsError(err)
29 }
30}