1pub type Result<T> = std::result::Result<T, Error>;
3
4#[derive(Debug, thiserror::Error)]
6pub enum Error {
7 #[error("invalid configuration: {0}")]
9 Configuration(String),
10 #[error("XML: {0}")]
12 Xml(#[from] roxmltree::Error),
13 #[error("unsupported XML: {0}")]
15 UnsupportedXml(&'static str),
16 #[error("field {name:?} at {path:?}: {message}")]
18 Field {
19 name: String,
21 path: String,
23 message: String,
25 },
26 #[error("batch is full; flush before appending")]
28 BatchFull,
29 #[error("Arrow: {0}")]
31 Arrow(#[from] arrow_schema::ArrowError),
32}