1use thiserror::Error;
2
3#[derive(Debug, Error)]
4pub enum PerpetualError {
5 #[error("Feature number {0} has no variance, when missing values are excluded.")]
6 NoVariance(usize),
7 #[error("Unable to write model to file: {0}")]
8 UnableToWrite(String),
9 #[error("Unable to read model from a file {0}")]
10 UnableToRead(String),
11 #[error("The value {0} is set to missing, but a NaN value was found in the data.")]
12 NANVAlueFound(f64),
13 #[error("Invalid value {0} passed for {1}, expected one of {2}.")]
14 ParseString(String, String, String),
15 #[error("Invalid parameter value passed for {0}, expected {1} but {2} provided.")]
17 InvalidParameter(String, String, String),
18}