1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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::errors::ConnectorXError),

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