1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
//! Error helpers for the xlsx module.
//!
//! The xlsx submodule maps its internal failure conditions onto the crate-wide
//! [`pandrs::error::Error`] enum. We intentionally do not introduce a new error
//! type because the public surface of `pandrs::io::excel` already returns
//! `pandrs::error::Result<T>`, and a secondary error type would force all
//! callers to bridge between two hierarchies.
use crateError;
/// Build an I/O-flavoured error with a formatted message.
pub
/// Build an invalid-input error with a formatted message.
pub
/// Convert a `std::io::Error` into an `Error::Io` variant.
pub
/// Convert a [`quick_xml::Error`] into a `pandrs::error::Error`.
pub
/// Convert any error with a `Display` implementation from the oxiarc stack into
/// a `pandrs::error::Error`. We keep this generic so we do not need a direct
/// dependency on `oxiarc-core`.
pub