pub enum DataError {
LengthMismatch {
expected: usize,
actual: usize,
context: &'static str,
},
UnknownVariable {
id: VariableId,
},
TypeMismatch {
id: VariableId,
expected: &'static str,
},
InvalidValidity {
message: &'static str,
},
EmptySelection {
context: &'static str,
},
IncompleteSeries {
id: Option<VariableId>,
message: &'static str,
},
InvalidArgument {
message: String,
},
Schema(String),
}Expand description
Errors from data construction, lookup, or materialization.
Variants§
LengthMismatch
Schema/data length mismatch.
UnknownVariable
Unknown variable in this table.
Fields
§
id: VariableIdRequested id.
TypeMismatch
Column type does not match the requested view.
InvalidValidity
Invalid validity bitmap length.
EmptySelection
Row selection produced an empty sample.
IncompleteSeries
Temporal gather requires a complete series (no missing values or masked rows).
Fields
§
id: Option<VariableId>Offending variable, when the gap is column-specific.
InvalidArgument
Invalid argument (split policy, configuration, etc.).
Schema(String)
Underlying schema error.
Trait Implementations§
impl Eq for DataError
Source§impl Error for DataError
impl Error for DataError
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 DataError
Auto Trait Implementations§
impl Freeze for DataError
impl RefUnwindSafe for DataError
impl Send for DataError
impl Sync for DataError
impl Unpin for DataError
impl UnsafeUnpin for DataError
impl UnwindSafe for DataError
Blanket Implementations§
impl<T> Allocation for T
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