ErrorReporter

interface ErrorReporter

This interface defines a protocol for the reporting of errors during JavaScript translation or execution.

Inheritors

Functions

Link copied to clipboard
abstract fun error(message: String, sourceName: String?, line: Int, lineSource: String?, lineOffset: Int)

Report an error. The implementing class is free to throw an exception.

Link copied to clipboard
abstract fun runtimeError(message: String, sourceName: String?, line: Int, lineSource: String?, lineOffset: Int): EvaluatorException

Creates an EvaluatorException that may be thrown. runtimeErrors, unlike errors, will always terminate the current script.

Link copied to clipboard
abstract fun warning(message: String, sourceName: String?, line: Int, lineSource: String?, lineOffset: Int)

Report a warning. The implementing class may choose to ignore the warning.