ParserException

class ParserException(val line: Int? = null, val column: Int? = null, val tokensConsumed: Int = 0, val rule: Rule<*>? = null, val element: PatternElement? = null, message: String, cause: Throwable? = null) : Exception

Exception thrown when parsing fails.

Constructors

Link copied to clipboard
constructor(line: Int? = null, column: Int? = null, tokensConsumed: Int = 0, rule: Rule<*>? = null, element: PatternElement? = null, message: String, cause: Throwable? = null)

Properties

Link copied to clipboard
open val cause: Throwable?
Link copied to clipboard
val column: Int? = null

The column number where parsing failed

Link copied to clipboard
val element: PatternElement? = null

The PatternElement that failed to match (if applicable)

Link copied to clipboard
val line: Int? = null

The line number where parsing failed

Link copied to clipboard
open val message: String?
Link copied to clipboard
val rule: Rule<*>? = null

The Rule that failed to match (if applicable)

Link copied to clipboard

The number of tokens consumed before the failure