pub enum VolasError {
ColumnNotFound(String),
DType(String),
Shape(String),
Index(String),
Value(String),
Parse(String),
}Expand description
Errors raised by the volas core. The Python binding maps each variant to a
typed exception (see volas-python).
Variants§
ColumnNotFound(String)
A column name was not found in the frame.
DType(String)
A dtype-incompatible operation (e.g. appending Bool onto F64).
Shape(String)
Mismatched lengths / shapes (e.g. columns of unequal height).
Index(String)
Out-of-range or otherwise invalid index access.
Value(String)
A bad argument value.
Parse(String)
A directive string that could not be tokenized / parsed (a syntax error,
annotated with line / column), as opposed to a Value error
for a well-formed directive with an invalid command / argument.
Trait Implementations§
Source§impl Clone for VolasError
impl Clone for VolasError
Source§fn clone(&self) -> VolasError
fn clone(&self) -> VolasError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VolasError
impl Debug for VolasError
Source§impl Display for VolasError
impl Display for VolasError
Source§impl Error for VolasError
impl Error for VolasError
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 PartialEq for VolasError
impl PartialEq for VolasError
impl StructuralPartialEq for VolasError
Auto Trait Implementations§
impl Freeze for VolasError
impl RefUnwindSafe for VolasError
impl Send for VolasError
impl Sync for VolasError
impl Unpin for VolasError
impl UnsafeUnpin for VolasError
impl UnwindSafe for VolasError
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