quantized_density_fields/
error.rs

1use id::ID;
2use std::result::Result as StdResult;
3
4/// Defines Quantized Density Fields errors.
5#[derive(Debug)]
6pub enum QDFError {
7    /// Tells that specified space does not exists in container.
8    SpaceDoesNotExists(ID),
9    /// Tells that specified level does not exists in container.
10    LevelDoesNotExists(ID),
11    /// Tells that specified field does not exists in container.
12    FieldDoesNotExists(ID),
13}
14
15/// Alias for standard result with `QDFError` error type.
16pub type Result<T> = StdResult<T, QDFError>;