etop_format/
exceptions.rs

1/// format error
2#[derive(Debug)]
3pub enum FormatError {
4    /// could not parse format type
5    CouldNotParseFormatType,
6    /// could not decompose coefficient exponent
7    CouldNotDecomposeCoefficientExponent,
8    /// could not create regex
9    CouldNotCreateRegex,
10    /// regex could not match
11    CouldNotMatchRegex,
12    /// invalid format
13    InvalidFormat(String),
14    /// empty data
15    EmptyData(String),
16    /// polars erro
17    PolarsError(polars::prelude::PolarsError),
18    /// column missing
19    ColumnMissing(String),
20    /// unsupported datatype
21    UnsupportedDatatype(String),
22    /// mismatched format type
23    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}