pub enum TransferredError {
Source(String),
EmptySource,
Destination(String),
Io(Error),
Arrow(ArrowError),
Other(String),
}Expand description
Root error type. Every fallible operation in transferred returns Result<T, TransferredError>.
Maps to Python transferred.TransferredError at the FFI boundary.
Variants§
Source(String)
A source connector failed to read or produce data.
EmptySource
Source produced zero batches (Python EmptySourceError).
Destination(String)
A destination connector failed to write or finalize output.
Io(Error)
Underlying I/O failure (filesystem, network).
Arrow(ArrowError)
Arrow compute or schema error surfaced from the data layer.
Other(String)
Any error that does not fit the other variants.
Implementations§
Source§impl TransferredError
impl TransferredError
Sourcepub fn source<S: Into<String>>(msg: S) -> Self
pub fn source<S: Into<String>>(msg: S) -> Self
Construct a TransferredError::Source from any message.
Sourcepub fn destination<S: Into<String>>(msg: S) -> Self
pub fn destination<S: Into<String>>(msg: S) -> Self
Construct a TransferredError::Destination from any message.
Sourcepub fn other<S: Into<String>>(msg: S) -> Self
pub fn other<S: Into<String>>(msg: S) -> Self
Construct a TransferredError::Other from any message.
Trait Implementations§
Source§impl Debug for TransferredError
impl Debug for TransferredError
Source§impl Display for TransferredError
impl Display for TransferredError
Source§impl Error for TransferredError
impl Error for TransferredError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<ArrowError> for TransferredError
impl From<ArrowError> for TransferredError
Source§fn from(source: ArrowError) -> Self
fn from(source: ArrowError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for TransferredError
impl !UnwindSafe for TransferredError
impl Freeze for TransferredError
impl Send for TransferredError
impl Sync for TransferredError
impl Unpin for TransferredError
impl UnsafeUnpin for TransferredError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more