#[non_exhaustive]pub enum VortexError {
Show 15 variants
OutOfBounds(usize, usize, usize, Backtrace),
ComputeError(ErrString, Backtrace),
InvalidArgument(ErrString, Backtrace),
InvalidSerde(ErrString, Backtrace),
NotImplemented(ErrString, ErrString, Backtrace),
MismatchedTypes(ErrString, ErrString, Backtrace),
AssertionFailed(ErrString, Backtrace),
Context(ErrString, Box<VortexError>),
ArrowError(ArrowError),
FmtError(Error),
IOError(Error),
Utf8Error(Utf8Error),
TryFromSliceError(TryFromSliceError),
JiffError(Error),
UrlError(ParseError),
}
Expand description
The top-level error type for Vortex.
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.
OutOfBounds(usize, usize, usize, Backtrace)
An index is out of bounds.
ComputeError(ErrString, Backtrace)
An error occurred while executing a compute kernel.
InvalidArgument(ErrString, Backtrace)
An invalid argument was provided.
InvalidSerde(ErrString, Backtrace)
An error occurred while serializing or deserializing.
NotImplemented(ErrString, ErrString, Backtrace)
An unimplemented function was called.
MismatchedTypes(ErrString, ErrString, Backtrace)
A type mismatch occurred.
AssertionFailed(ErrString, Backtrace)
An assertion failed.
Context(ErrString, Box<VortexError>)
A wrapper for other errors, carrying additional context.
ArrowError(ArrowError)
A wrapper for errors from the Arrow library.
FmtError(Error)
A wrapper for formatting errors.
IOError(Error)
A wrapper for IO errors.
Utf8Error(Utf8Error)
A wrapper for UTF-8 conversion errors.
TryFromSliceError(TryFromSliceError)
A wrapper for errors from the standard library when converting a slice to an array.
JiffError(Error)
A wrapper for errors from the Jiff library.
UrlError(ParseError)
A wrapper for URL parsing errors.
Implementations§
Source§impl VortexError
impl VortexError
Sourcepub fn with_context<T: Into<ErrString>>(self, msg: T) -> Self
pub fn with_context<T: Into<ErrString>>(self, msg: T) -> Self
Adds additional context to an error.
Trait Implementations§
Source§impl Debug for VortexError
impl Debug for VortexError
Source§impl Display for VortexError
impl Display for VortexError
Source§impl Error for VortexError
impl Error for VortexError
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
Source§fn provide<'_request>(&'_request self, request: &mut Request<'_request>)
fn provide<'_request>(&'_request self, request: &mut Request<'_request>)
🔬This is a nightly-only experimental API. (
error_generic_member_access
)Provides type-based access to context intended for error reports. 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 VortexError
impl From<ArrowError> for VortexError
Source§fn from(source: ArrowError) -> Self
fn from(source: ArrowError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for VortexError
impl From<Error> for VortexError
Source§impl From<Error> for VortexError
impl From<Error> for VortexError
Source§impl From<Error> for VortexError
impl From<Error> for VortexError
Source§impl From<ParseError> for VortexError
impl From<ParseError> for VortexError
Source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.
Source§impl From<TryFromSliceError> for VortexError
impl From<TryFromSliceError> for VortexError
Source§fn from(source: TryFromSliceError) -> Self
fn from(source: TryFromSliceError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for VortexError
impl !RefUnwindSafe for VortexError
impl Send for VortexError
impl Sync for VortexError
impl Unpin for VortexError
impl !UnwindSafe for VortexError
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