shapemap/
shapemap_error.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use shex_ast::{compiled::shape_label::ShapeLabel, Node};
use thiserror::Error;

use crate::ValidationStatus;

#[derive(Error, Debug)]
pub enum ShapemapError {
    #[error("Trying to create an inconsistent status on node {node} and shape {label}. Old status: {old_status}, new status: {new_status}")]
    InconsistentStatus {
        node: Node,
        label: ShapeLabel,
        old_status: ValidationStatus,
        new_status: ValidationStatus,
    },
}