local_outlier_probabilities/
error.rs1use thiserror::Error;
2
3#[derive(Debug, Error)]
4pub enum Error {
5 #[error("Input data is empty")]
6 EmptyInput,
7 #[error("Expected point with {expected} dimensions but row {row} has {found}")]
8 DimensionMismatch {
9 expected: usize,
10 found: usize,
11 row: usize,
12 },
13 #[error("KDTree error: {0}")]
14 KdTreeError(#[from] kdtree::ErrorKind),
15 #[error("Could not convert `{0}` to Float.")]
16 CastingError(String),
17 #[error("Failed to extract point: {0}")]
18 PointExtraction(String),
19}