ParseException

open class ParseException : RuntimeException

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

Functions

Link copied to clipboard
fun addSuppressed(exception: Throwable)
Link copied to clipboard
open fun fillInStackTrace(): Throwable
Link copied to clipboard
open fun getCause(): Throwable
Link copied to clipboard
open fun getLocalizedMessage(): String
Link copied to clipboard
open fun getMessage(): String
Link copied to clipboard
open fun getStackTrace(): Array<StackTraceElement>
Link copied to clipboard
fun getSuppressed(): Array<Throwable>
Link copied to clipboard
open fun initCause(cause: Throwable): Throwable
Link copied to clipboard
open fun printStackTrace()
Link copied to clipboard
open fun setStackTrace(stackTrace: Array<StackTraceElement>)
Link copied to clipboard
open fun toString(): String

Properties

Link copied to clipboard
open val currentToken: Token
This is the last token that has been consumed successfully.
Link copied to clipboard
open val expectedTokenSequences: Array<Array<Int>>
Each entry in this array is an array of integers.
Link copied to clipboard
open val tokenImage: Array<String>
This is a reference to the "tokenImage" array of the generated parser within which the parse error occurred.