SyntaxError

class SyntaxError(    val message: String,     val lineNum: Int,     val columnNum: Int,     val visualisation: String? = null) : Error

Represents a syntactical error in the given input.

Should only be thrown during lexical or syntax analysis, in the case of an unrecognised or unexpected token, according to the language specification.

Constructors

Link copied to clipboard
fun SyntaxError(    message: String,     lineNum: Int,     columnNum: Int,     visualisation: String? = null)

Properties

Link copied to clipboard
open val cause: Throwable?
Link copied to clipboard
val columnNum: Int

the column number in the input where the error occurs

Link copied to clipboard
val errorName: String

Name of the error, to be displayed to the user. Usually the same as the class's name.

Link copied to clipboard
val lineNum: Int

the line number in the input where the error occurs

Link copied to clipboard
open override val message: String

description of the error

Link copied to clipboard
val visualisation: String? = null

a visual representation of the error.