RdfShapeValidationException class
Exception thrown when an RDF graph doesn't conform to a specified shape
This exception is specifically for cases where validation against formal shape definitions (like SHACL or ShEx) fails. It provides information about which shapes were violated and why.
- Inheritance
-
- Object
- RdfException
- RdfValidationException
- RdfShapeValidationException
Constructors
- RdfShapeValidationException(String message, {required String shapeId, required String targetNode, Object? cause, SourceLocation? source})
-
Creates a new shape validation exception
const
Properties
- cause → Object?
-
The original error that caused this exception, if any
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- message → String
-
Human-readable error message describing the issue
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shapeId → String
-
The identifier of the shape that was violated
final
- source → SourceLocation?
-
Optional source information where the error occurred
finalinherited
- targetNode → String
-
The target node that failed validation
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited