pub enum MinarrowError {
ColumnLengthMismatch {
col: usize,
expected: usize,
found: usize,
},
Overflow {
value: String,
target: &'static str,
},
LossyCast {
value: String,
target: &'static str,
},
TypeError {
from: &'static str,
to: &'static str,
message: Option<String>,
},
NullError {
message: Option<String>,
},
IncompatibleTypeError {
from: &'static str,
to: &'static str,
message: Option<String>,
},
KernelError(Option<String>),
ShapeError {
message: String,
},
NotImplemented {
feature: String,
},
IndexError(String),
BridgeError {
source: &'static str,
message: String,
},
DictionaryOverflow,
}Expand description
Catch all error types for Minarrow
Variants§
ColumnLengthMismatch
Overflow
LossyCast
TypeError
NullError
IncompatibleTypeError
KernelError(Option<String>)
ShapeError
NotImplemented
IndexError(String)
BridgeError
External bridge failure surfaced by to_apache_arrow / to_polars /
from_apache_arrow / from_polars or any of their try_* siblings.
source identifies the foreign library (e.g. "arrow-rs", "polars")
so the same variant can carry errors from either bridge.
DictionaryOverflow
Raised when a categorical operation would exceed the index type’s
cardinality, e.g. a 257th unique value on a u8 categorical.
Trait Implementations§
Source§impl Debug for MinarrowError
impl Debug for MinarrowError
Source§impl Display for MinarrowError
impl Display for MinarrowError
Source§impl Error for MinarrowError
impl Error for MinarrowError
1.30.0 · 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
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 MinarrowError
Available on crate feature cast_arrow only.
impl From<ArrowError> for MinarrowError
Available on crate feature
cast_arrow only.Source§fn from(e: ArrowError) -> Self
fn from(e: ArrowError) -> Self
Converts to this type from the input type.
Source§impl From<DictionaryError> for MinarrowError
Available on crate feature shared_dict only.
impl From<DictionaryError> for MinarrowError
Available on crate feature
shared_dict only.Source§fn from(source: DictionaryError) -> Self
fn from(source: DictionaryError) -> Self
Converts to this type from the input type.
Source§impl From<KernelError> for MinarrowError
impl From<KernelError> for MinarrowError
Source§fn from(err: KernelError) -> Self
fn from(err: KernelError) -> Self
Converts to this type from the input type.
Source§impl From<PolarsError> for MinarrowError
Available on crate feature cast_polars only.
impl From<PolarsError> for MinarrowError
Available on crate feature
cast_polars only.Source§fn from(e: PolarsError) -> Self
fn from(e: PolarsError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for MinarrowError
impl PartialEq for MinarrowError
Source§fn eq(&self, other: &MinarrowError) -> bool
fn eq(&self, other: &MinarrowError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MinarrowError
Auto Trait Implementations§
impl Freeze for MinarrowError
impl RefUnwindSafe for MinarrowError
impl Send for MinarrowError
impl Sync for MinarrowError
impl Unpin for MinarrowError
impl UnsafeUnpin for MinarrowError
impl UnwindSafe for MinarrowError
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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> ⓘ
Converts
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> ⓘ
Converts
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> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString. Read more