shapemap/shapemap_error.rs
1use shex_ast::{Node, ir::shape_label::ShapeLabel};
2use thiserror::Error;
3
4use crate::ValidationStatus;
5
6#[derive(Error, Debug)]
7pub enum ShapemapError {
8 #[error(
9 "Trying to create an inconsistent status on node {node} and shape {label}. Old status: {old_status}, new status: {new_status}"
10 )]
11 InconsistentStatus {
12 node: Box<Node>,
13 label: Box<ShapeLabel>,
14 old_status: ValidationStatus,
15 new_status: ValidationStatus,
16 },
17}