draxl_validate/error.rs
1use std::fmt;
2
3/// Validation error for Draxl bootstrap files.
4#[derive(Debug, Clone, PartialEq, Eq)]
5pub struct ValidationError {
6 pub message: String,
7}
8
9impl fmt::Display for ValidationError {
10 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
11 f.write_str(&self.message)
12 }
13}
14
15impl std::error::Error for ValidationError {}