ParseException

This exception is thrown when parse errors are encountered. You can explicitly create objects of this exception type by calling the method generateParseException in the generated parser. You can modify this class to customize your error reporting mechanisms so long as you retain the public fields.

Constructors

Link copied to clipboard
constructor(currentTokenVal: Token, expectedTokenSequencesVal: Array<Array<Int>>, tokenImageVal: Array<String>)
This constructor is used by the method "generateParseException" in the generated parser.
constructor()
The following constructors are for use by you for whatever purpose you can think of.
constructor(message: String)
Constructor with message.

Properties

Link copied to clipboard
open val cause: Throwable
Link copied to clipboard
This is the last token that has been consumed successfully.
Link copied to clipboard
Each entry in this array is an array of integers.
Link copied to clipboard
Link copied to clipboard
This is a reference to the "tokenImage" array of the generated parser within which the parse error occurred.

Functions

Link copied to clipboard
fun addSuppressed(exception: Throwable)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun getMessage(): String
Link copied to clipboard
Link copied to clipboard
open fun initCause(cause: Throwable): Throwable
Link copied to clipboard
open fun printStackTrace()
Link copied to clipboard
open fun toString(): String