use thiserror::Error;
#[derive(Error, Debug)]
pub enum ValidationError {
#[error("Validation failed: {message}")]
ValidationFailed { message: String },
#[error("Invalid validation data: {reason}")]
InvalidValidationData { reason: String },
#[error(
"Validation tolerance exceeded: expected {expected}, got {actual}, tolerance {tolerance}"
)]
ToleranceExceeded {
expected: f32,
actual: f32,
tolerance: f32,
},
}