RdfSyntaxException class

Exception thrown when the decoder encounters syntax errors in the input

This exception indicates that the input document contains syntax that violates the rules of the RDF serialization format being decoded. These are typically errors in the document itself, not in the decoder.

Examples include:

  • Missing closing tags or delimiters
  • Invalid escape sequences in strings
  • Malformed IRIs
  • Unexpected tokens
Inheritance

Constructors

RdfSyntaxException(String message, {required String format, Object? cause, SourceLocation? source})
Creates a new RDF syntax exception
const

Properties

cause Object?
The original error that caused this exception, if any
finalinherited
format String
Format being decoded when the exception occurred
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
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