pub enum TidyError {
ColumnNotFound(String),
DuplicateColumn(String),
PredicateNotBool {
got: String,
},
TypeMismatch {
expected: String,
got: String,
},
LengthMismatch {
expected: usize,
got: usize,
},
Internal(String),
EmptyGroup,
CapacityExceeded {
limit: usize,
got: usize,
},
}Expand description
Errors produced by Phase 10 tidy operations.
Variants§
ColumnNotFound(String)
A column referenced in the expression was not found.
DuplicateColumn(String)
A duplicate column name was supplied in select/mutate.
PredicateNotBool
The filter predicate evaluated to a non-boolean value.
TypeMismatch
A mutate expression produced a type mismatch.
LengthMismatch
Scalar broadcast to a vector of non-matching length.
Internal(String)
An internal/unexpected error (wraps DataError strings).
EmptyGroup
first() or last() called on an empty group.
CapacityExceeded
Phase 17: too many distinct levels for a u16 FctColumn.
Implementations§
Source§impl TidyError
impl TidyError
Sourcepub fn schema_mismatch(msg: impl Into<String>) -> Self
pub fn schema_mismatch(msg: impl Into<String>) -> Self
Construct a schema mismatch error.
Sourcepub fn join_type_mismatch(col: &str, lt: &str, rt: &str) -> Self
pub fn join_type_mismatch(col: &str, lt: &str, rt: &str) -> Self
Construct a type mismatch for join validation.
Sourcepub fn duplicate_key(key: impl Into<String>) -> Self
pub fn duplicate_key(key: impl Into<String>) -> Self
Duplicate join/pivot key error.
Sourcepub fn empty_selection(msg: impl Into<String>) -> Self
pub fn empty_selection(msg: impl Into<String>) -> Self
Empty selection (e.g. pivot_longer with zero value_cols).
Trait Implementations§
Source§impl Error for TidyError
impl Error for TidyError
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()
impl StructuralPartialEq for TidyError
Auto Trait Implementations§
impl Freeze for TidyError
impl RefUnwindSafe for TidyError
impl Send for TidyError
impl Sync for TidyError
impl Unpin for TidyError
impl UnsafeUnpin for TidyError
impl UnwindSafe for TidyError
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 more