Enum ArrowError
pub enum ArrowError {
Show 18 variants
NotYetImplemented(String),
ExternalError(Box<dyn Error + Send + Sync>),
CastError(String),
MemoryError(String),
ParseError(String),
SchemaError(String),
ComputeError(String),
DivideByZero,
ArithmeticOverflow(String),
CsvError(String),
JsonError(String),
IoError(String, Error),
IpcError(String),
InvalidArgumentError(String),
ParquetError(String),
CDataInterface(String),
DictionaryKeyOverflowError,
RunEndIndexOverflowError,
}
Expand description
Many different operations in the arrow
crate return this error type.
Variants§
NotYetImplemented(String)
Returned when functionality is not yet available.
ExternalError(Box<dyn Error + Send + Sync>)
Wraps an external error.
CastError(String)
Error during casting from one type to another.
MemoryError(String)
Memory or buffer error.
ParseError(String)
Error during parsing from a string.
SchemaError(String)
Error during schema-related operations.
ComputeError(String)
Error during computation.
DivideByZero
Error during division by zero.
ArithmeticOverflow(String)
Error when an arithmetic operation overflows.
CsvError(String)
Error during CSV-related operations.
JsonError(String)
Error during JSON-related operations.
IoError(String, Error)
Error during IO operations.
IpcError(String)
Error during IPC operations in arrow-ipc
or arrow-flight
.
InvalidArgumentError(String)
Error indicating that an unexpected or bad argument was passed to a function.
ParquetError(String)
Error during Parquet operations.
CDataInterface(String)
Error during import or export to/from the C Data Interface
DictionaryKeyOverflowError
Error when a dictionary key is bigger than the key type
RunEndIndexOverflowError
Error when the run end index in a REE array is bigger than the array length
Implementations§
§impl ArrowError
impl ArrowError
pub fn from_external_error(error: Box<dyn Error + Send + Sync>) -> ArrowError
pub fn from_external_error(error: Box<dyn Error + Send + Sync>) -> ArrowError
Wraps an external error in an ArrowError
.
Trait Implementations§
§impl Debug for ArrowError
impl Debug for ArrowError
§impl Display for ArrowError
impl Display for ArrowError
§impl Error for ArrowError
impl Error for ArrowError
§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Source§impl From<ArrowError> for ChunkError
impl From<ArrowError> for ChunkError
Source§fn from(source: ArrowError) -> ChunkError
fn from(source: ArrowError) -> ChunkError
Source§impl From<ArrowError> for SerializationError
impl From<ArrowError> for SerializationError
Source§fn from(e: ArrowError) -> SerializationError
fn from(e: ArrowError) -> SerializationError
§impl From<Error> for ArrowError
impl From<Error> for ArrowError
§fn from(error: Error) -> ArrowError
fn from(error: Error) -> ArrowError
§impl From<FromUtf8Error> for ArrowError
impl From<FromUtf8Error> for ArrowError
§fn from(error: FromUtf8Error) -> ArrowError
fn from(error: FromUtf8Error) -> ArrowError
§impl<W> From<IntoInnerError<W>> for ArrowErrorwhere
W: Write,
impl<W> From<IntoInnerError<W>> for ArrowErrorwhere
W: Write,
§fn from(error: IntoInnerError<W>) -> ArrowError
fn from(error: IntoInnerError<W>) -> ArrowError
§impl From<ParquetError> for ArrowError
impl From<ParquetError> for ArrowError
§fn from(p: ParquetError) -> ArrowError
fn from(p: ParquetError) -> ArrowError
§impl From<Utf8Error> for ArrowError
impl From<Utf8Error> for ArrowError
§fn from(error: Utf8Error) -> ArrowError
fn from(error: Utf8Error) -> ArrowError
Auto Trait Implementations§
impl Freeze for ArrowError
impl !RefUnwindSafe for ArrowError
impl Send for ArrowError
impl Sync for ArrowError
impl Unpin for ArrowError
impl !UnwindSafe for ArrowError
Blanket Implementations§
§impl<T> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere
T: Error + 'static,
§fn as_error_source(&self) -> &(dyn Error + 'static)
fn as_error_source(&self) -> &(dyn Error + 'static)
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
Source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
Source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
Source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request