#[non_exhaustive]
pub enum Error {
NotYetImplemented(String),
External(String, Box<dyn Error + Send + Sync>),
Io(Error),
InvalidArgumentError(String),
ExternalFormat(String),
Overflow,
OutOfSpec(String),
}
Expand description
Enum with all errors in this crate.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
NotYetImplemented(String)
Returned when functionality is not yet available.
External(String, Box<dyn Error + Send + Sync>)
Wrapper for an error triggered by a dependency
Io(Error)
Wrapper for IO errors
InvalidArgumentError(String)
When an invalid argument is passed to a function.
ExternalFormat(String)
Error during import or export to/from a format
Overflow
Whenever pushing to a container fails because it does not support more entries. The solution is usually to use a higher-capacity container-backing type.
OutOfSpec(String)
Whenever incoming data from the C data interface, IPC or Flight does not fulfil the Arrow specification.
Implementations§
Trait Implementations§
source§impl Error for Error
impl Error for Error
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<Error> for Error
Available on crate features io_csv_read
or io_csv_read_async
or io_csv_write
only.
impl From<Error> for Error
Available on crate features
io_csv_read
or io_csv_read_async
or io_csv_write
only.source§impl From<Error> for Error
Available on crate feature io_csv_read_async
and (crate features io_csv_read
or io_csv_read_async
or io_csv_write
) only.
impl From<Error> for Error
Available on crate feature
io_csv_read_async
and (crate features io_csv_read
or io_csv_read_async
or io_csv_write
) only.source§impl From<FromUtf8Error> for Error
impl From<FromUtf8Error> for Error
source§fn from(error: FromUtf8Error) -> Self
fn from(error: FromUtf8Error) -> Self
Converts to this type from the input type.
source§impl From<OutOfSpecKind> for Error
Available on crate feature io_ipc
only.
impl From<OutOfSpecKind> for Error
Available on crate feature
io_ipc
only.source§fn from(kind: OutOfSpecKind) -> Self
fn from(kind: OutOfSpecKind) -> Self
Converts to this type from the input type.
source§impl From<ParseError> for Error
Available on crate features io_csv_read
or io_csv_read_async
or io_csv_write
only.
impl From<ParseError> for Error
Available on crate features
io_csv_read
or io_csv_read_async
or io_csv_write
only.source§fn from(error: ParseError) -> Self
fn from(error: ParseError) -> Self
Converts to this type from the input type.
source§impl From<TryReserveError> for Error
impl From<TryReserveError> for Error
source§fn from(_: TryReserveError) -> Error
fn from(_: TryReserveError) -> Error
Converts to this type from the input type.