UnexpectedTokenException

class UnexpectedTokenException(source: Source, token: Token, offendingText: String, expected: Set<SyntaxExpectation>, rulePath: List<String>) : PrologParsingException

Reports a non-EOF token that is not accepted by the active grammar rule.

Constructors

Link copied to clipboard
constructor(source: Source, token: Token, offendingText: String, expected: Set<SyntaxExpectation>, rulePath: List<String>)

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