#[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<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
impl From<OutOfSpecKind> for Error
source§fn from(kind: OutOfSpecKind) -> Self
fn from(kind: OutOfSpecKind) -> 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.
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
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