Skip to main content

shacl_ast/ast/
shacl_error.rs

1use rudof_rdf::rdf_core::term::Object;
2use thiserror::Error;
3
4#[derive(Debug, Error)]
5pub enum ShaclError {
6    #[error("NodeShape has an id which is not an IRI: {id}")]
7    NodeShapeIdNotIri { id: Box<Object> },
8
9    #[error("Not found shape {shape}")]
10    ShapeNotFound { shape: Box<Object> },
11}