pub enum InsightError {
CsvParse {
line: usize,
message: String,
},
JsonParse {
message: String,
},
MissingValues {
column: String,
count: usize,
},
InsufficientData {
min_required: usize,
actual: usize,
},
InvalidParameter {
name: String,
message: String,
},
DegenerateData {
reason: String,
},
ComputationFailed {
operation: String,
detail: String,
},
ColumnNotFound {
name: String,
},
DimensionMismatch {
expected: usize,
actual: usize,
},
Io(String),
}Expand description
All errors produced by u-insight operations.
Variants§
CsvParse
CSV parsing failed.
JsonParse
JSON parsing failed.
MissingValues
Column contains missing values where none are allowed.
InsufficientData
Insufficient data rows/samples for the requested operation.
InvalidParameter
Invalid parameter value for the requested operation.
DegenerateData
Data is degenerate (constant columns, singular matrix, etc.).
ComputationFailed
Internal computation failed (eigenvalue decomposition, matrix construction, etc.).
ColumnNotFound
Column not found in DataFrame.
DimensionMismatch
Dimension mismatch.
Io(String)
I/O error during file reading.
Trait Implementations§
Source§impl Clone for InsightError
impl Clone for InsightError
Source§fn clone(&self) -> InsightError
fn clone(&self) -> InsightError
Returns a duplicate of the value. Read more
1.0.0 · 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 InsightError
impl Debug for InsightError
Source§impl Display for InsightError
impl Display for InsightError
Source§impl Error for InsightError
impl Error for InsightError
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<Error> for InsightError
impl From<Error> for InsightError
Source§impl PartialEq for InsightError
impl PartialEq for InsightError
impl StructuralPartialEq for InsightError
Auto Trait Implementations§
impl Freeze for InsightError
impl RefUnwindSafe for InsightError
impl Send for InsightError
impl Sync for InsightError
impl Unpin for InsightError
impl UnsafeUnpin for InsightError
impl UnwindSafe for InsightError
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