1
 2
 3
 4
 5
 6
 7
 8
 9
10
use thiserror::Error;
pub type Result<T> = std::result::Result<T, OpticsError>;

/// An error when performing OPTICS Analysis
#[derive(Error, Debug)]
pub enum OpticsError {
    /// When any of the hyperparameters are set the wrong value
    #[error("Invalid value encountered: {0}")]
    InvalidValue(String),
}