connectorx/destinations/arrowstream/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 /// Any other errors that are too trivial to be put here explicitly.
14 #[error(transparent)]
15 Other(#[from] anyhow::Error),
16}