connectorx/destinations/arrow2/errors.rs
use thiserror::Error;
pub type Result<T> = std::result::Result<T, Arrow2DestinationError>;
#[derive(Error, Debug)]
pub enum Arrow2DestinationError {
#[error(transparent)]
ArrowError(#[from] arrow2::error::Error),
#[error(transparent)]
PolarsError(#[from] polars::error::PolarsError),
#[error(transparent)]
ConnectorXError(#[from] crate::errors::ConnectorXError),
/// Any other errors that are too trivial to be put here explicitly.
#[error(transparent)]
Other(#[from] anyhow::Error),
}