shapemap/
shapemap_error.rs

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