shacl_validation/helpers/
helper_error.rs1use srdf::SRDFGraphError;
2use thiserror::Error;
3
4#[derive(Error, Debug)]
5pub enum SPARQLError {
6 #[error("Query could not be performed")]
7 Query { query: String, error: String },
8}
9
10#[derive(Error, Debug)]
11pub enum SRDFError {
12 #[error("Error during the SRDF operation")]
13 Srdf { error: String },
14
15 #[error("Error during the creation of the SRDFGraph")]
18 SRDFGraph(#[from] SRDFGraphError),
19
20 #[error("Converting term {subject} to subject")]
21 SRDFTermAsSubject { subject: String },
22
23 #[error("Error finding values for subject {subject} with predicate {predicate}: {error}")]
24 ObjectsWithSubjectPredicate {
25 subject: String,
26 predicate: String,
27 error: String,
28 },
29
30 #[error("Error finding values for object {object} with predicate {predicate}: {error}")]
31 SubjectsWithPredicateObject {
32 object: String,
33 predicate: String,
34 error: String,
35 },
36}