RdfConstraintViolationException class

Exception thrown when an RDF model constraint is violated

This exception indicates that the RDF data violates a specific constraint defined in a data model, schema, or application logic. These are semantic errors where the data is syntactically valid but doesn't comply with higher-level rules.

Examples include:

  • Cardinality violations (e.g., missing a required property)
  • Value range violations (e.g., numeric value out of allowed range)
  • Pattern constraints (e.g., string not matching a required pattern)
  • Graph structure constraints (e.g., missing a required relationship)
Inheritance

Constructors

RdfConstraintViolationException(String message, {required String constraint, Object? cause, SourceLocation? source})
Creates a new constraint violation exception
const

Properties

cause Object?
The original error that caused this exception, if any
finalinherited
constraint String
The name of the violated constraint
final
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
source SourceLocation?
Optional source information where the error occurred
finalinherited

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