polite 0.1.3

rusqlite × Polars bridge library
Documentation
use thiserror::Error;

pub type Result<T> = std::result::Result<T, ArrowDestinationError>;

#[derive(Error, Debug)]
pub enum ArrowDestinationError {
    #[error(transparent)]
    ArrowError(#[from] arrow::error::ArrowError),

    #[error(transparent)]
    ConnectorXError(#[from] crate::connectorx::errors::ConnectorXError),

    // #[cfg(feature = "dst_polars")]
    #[error(transparent)]
    PolarsError(#[from] polars::error::PolarsError),

    /// Any other errors that are too trivial to be put here explicitly.
    #[error(transparent)]
    Other(#[from] anyhow::Error),
}