PrologSyntaxException

Root of all typed lexical and grammatical diagnostics produced by parser-impl.

Consumers should normally catch this type, then inspect code for stable programmatic classification. Coordinates in span are zero-based and end-exclusive. Higher-level parser-core and parser-theory APIs wrap this exception in their domain-facing ParseException while preserving it as the cause.

Parameters

message

human-readable diagnostic

cause

underlying source or decoding failure, if any

Inheritors

Properties

Link copied to clipboard
expect open val cause: Throwable?
Link copied to clipboard

stable category of the failure

Link copied to clipboard

structured descriptions of acceptable syntax

Link copied to clipboard
expect open val message: String?
Link copied to clipboard

offending source spelling, or null when no token exists

Link copied to clipboard

outer-to-inner grammar rules active at the failure

Link copied to clipboard

optional diagnostic identifier of the source

Link copied to clipboard

exact source range associated with the failure