connectorx/destinations/arrow/
errors.rs

1use thiserror::Error;
2
3pub type Result<T> = std::result::Result<T, ArrowDestinationError>;
4
5#[derive(Error, Debug)]
6pub enum ArrowDestinationError {
7    #[error(transparent)]
8    ArrowError(#[from] arrow::error::ArrowError),
9
10    #[error(transparent)]
11    ConnectorXError(#[from] crate::errors::ConnectorXError),
12
13    #[cfg(feature = "dst_polars")]
14    #[error(transparent)]
15    PolarsError(#[from] polars::error::PolarsError),
16
17    /// Any other errors that are too trivial to be put here explicitly.
18    #[error(transparent)]
19    Other(#[from] anyhow::Error),
20}