connectorx/destinations/arrowstream/errors.rs
1use thiserror::Error;
2
3/// Result type of the streaming Arrow destination.
4pub type Result<T> = std::result::Result<T, ArrowDestinationError>;
5
6/// Errors raised by the streaming Arrow destination.
7#[derive(Error, Debug)]
8pub enum ArrowDestinationError {
9 /// Error from the `arrow` crate while building arrays or batches.
10 #[error(transparent)]
11 ArrowError(#[from] arrow::error::ArrowError),
12
13 /// Generic ConnectorX error.
14 #[error(transparent)]
15 ConnectorXError(#[from] crate::errors::ConnectorXError),
16
17 /// Any other errors that are too trivial to be put here explicitly.
18 #[error(transparent)]
19 Other(#[from] anyhow::Error),
20}