1#[derive(Debug, thiserror::Error)]
2pub enum ApiError {
3
4 #[error("Index {0:?} is Out of Range {1}")]
5 OutOfRange(usize,usize),
6
7 #[error("Property {0} does not exist in the selected dataset")]
8 KeyError(String),
9
10 #[error("Records quantity '{0}' does not exist in the selected dataset")]
11 RecordsError(String),
12
13 #[error("Datasetd shape mismatch")]
14 ShapeError,
15
16 #[error("Internal I/O error: {0}")]
17 Io(#[from] hdf5::Error),
18
19 #[error("Error: {0}")]
20 Default(String),
21}
22
23