RdfTypeException class
Exception thrown when there's a type error in RDF data
This exception indicates that a value in the RDF data doesn't match the expected type according to a schema, ontology, or application logic. Type errors are a common subset of constraint violations that deal specifically with datatype mismatches.
Examples include:
- A literal with the wrong XSD datatype
- A resource that doesn't conform to its expected class
- A value that can't be properly interpreted as the required type
- Inheritance
-
- Object
- RdfException
- RdfValidationException
- RdfTypeException
Constructors
- RdfTypeException(String message, {required String expectedType, String? actualType, Object? cause, SourceLocation? source})
-
Creates a new RDF type exception
const
Properties
- actualType → String?
-
Actual type found
final
- cause → Object?
-
The original error that caused this exception, if any
finalinherited
- expectedType → String
-
Expected type
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