CompilerError

open class CompilerError : Error(source)

A CompilerError is an error thrown by a Compiler. It has functionality for marking source code locations

Since

0.1.0

Inheritors

Constructors

Link copied to clipboard
constructor(message: String, exceptionName: String, details: String, start: Position, end: Position, cause: Throwable? = null)

Constructor for CompilerError

constructor(message: String, exceptionName: String, details: String, map: PositionMap, start: Int, end: Int, cause: Throwable? = null)

Constructor for CompilerError

Types

Link copied to clipboard
object Companion
Link copied to clipboard
class ErrorMarker(val source: String, val colorPreview: String, val preview: String, val marker: String)

A marker for the position of the CompilerError

Properties

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

The details of the CompilerError

Link copied to clipboard

The end position of the CompilerError

Link copied to clipboard

The name of the CompilerError

Link copied to clipboard

The marker of the Error

Link copied to clipboard
open val message: String?
Link copied to clipboard

The start position of the CompilerError

Functions

Link copied to clipboard
open override fun toString(): String

Stringify the CompilerError