Enum arrow2::error::ArrowError
source · [−]pub enum ArrowError {
NotYetImplemented(String),
External(String, Box<dyn Error + Send + Sync>),
Schema(String),
Io(Error),
InvalidArgumentError(String),
Ffi(String),
Ipc(String),
ExternalFormat(String),
KeyOverflowError,
ArithmeticError(String),
Other(String),
}
Expand description
Enum with all errors in this crate.
Variants
NotYetImplemented(String)
Returned when functionality is not yet available.
External(String, Box<dyn Error + Send + Sync>)
Triggered by an external error, such as CSV, serde, chrono.
Schema(String)
Error associated with incompatible schemas.
Io(Error)
Errors associated with IO
InvalidArgumentError(String)
When an invalid argument is passed to a function.
Ffi(String)
Error during import or export to/from C Data Interface
Ipc(String)
Error during import or export to/from IPC
ExternalFormat(String)
Error during import or export to/from a format
KeyOverflowError
Whenever pushing to a container fails because it does not support more entries. (e.g. maximum size of the keys of a dictionary overflowed)
ArithmeticError(String)
Error during arithmetic operation. Normally returned during checked operations
Other(String)
Any other error.
Implementations
sourceimpl ArrowError
impl ArrowError
sourcepub fn from_external_error(error: impl Error + Send + Sync + 'static) -> Self
pub fn from_external_error(error: impl Error + Send + Sync + 'static) -> Self
Wraps an external error in an ArrowError
.
Trait Implementations
sourceimpl Debug for ArrowError
impl Debug for ArrowError
sourceimpl Display for ArrowError
impl Display for ArrowError
sourceimpl Error for ArrowError
impl Error for ArrowError
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
sourceimpl From<ArrowError> for ParquetError
This is supported on crate feature io_parquet
only.
impl From<ArrowError> for ParquetError
io_parquet
only.sourcefn from(error: ArrowError) -> Self
fn from(error: ArrowError) -> Self
Performs the conversion.
sourceimpl From<Error> for ArrowError
This is supported on crate feature io_csv
only.
impl From<Error> for ArrowError
io_csv
only.sourceimpl From<Error> for ArrowError
This is supported on crate feature io_json
only.
impl From<Error> for ArrowError
io_json
only.sourceimpl From<Error> for ArrowError
This is supported on crate feature io_avro
only.
impl From<Error> for ArrowError
io_avro
only.sourceimpl From<ParquetError> for ArrowError
This is supported on crate feature io_parquet
only.
impl From<ParquetError> for ArrowError
io_parquet
only.sourcefn from(error: ParquetError) -> Self
fn from(error: ParquetError) -> Self
Performs the conversion.
sourceimpl From<ParseError> for ArrowError
This is supported on crate feature io_csv
only.
impl From<ParseError> for ArrowError
io_csv
only.sourcefn from(error: ParseError) -> Self
fn from(error: ParseError) -> Self
Performs the conversion.
sourceimpl From<Utf8Error> for ArrowError
impl From<Utf8Error> for ArrowError
Auto Trait Implementations
impl !RefUnwindSafe for ArrowError
impl Send for ArrowError
impl Sync for ArrowError
impl Unpin for ArrowError
impl !UnwindSafe for ArrowError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more