shacl_validation/validation_report/
validation_report_error.rs1use thiserror::Error;
2
3use crate::helpers::helper_error::SRDFError;
4
5#[derive(Error, Debug)]
6pub enum ReportError {
7 #[error("Error parsing the ValidationReport, {}", _0)]
8 Srdf(#[from] SRDFError),
9
10 #[error(transparent)]
11 Result(#[from] ResultError),
12
13 #[error("Error generating ValidationReport: {msg}")]
14 ValidationReportError { msg: String },
15}
16
17#[derive(Error, Debug)]
18pub enum ResultError {
19 #[error("Error parsing the ValidationResult, the {} field is missing", _0)]
20 MissingRequiredField(String),
21
22 #[error("Error parsing the ValidationResult, {}", _0)]
23 Srdf(#[from] SRDFError),
24}