EcmaError

The errors the engine itself raises, as ECMA edition 3 section 15.11.6 describes them: EvalError, RangeError, ReferenceError, SyntaxError, TypeError and URIError.

A problem inside the engine throws a plain runtime exception instead.

Properties

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

The text describing what went wrong. Not specified, so it can change between releases.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
override val message: String
Link copied to clipboard

Which of the standard error names this is.

Link copied to clipboard

The script frames at the time of the throw, innermost first.

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open override fun details(): String
Link copied to clipboard
fun getScriptStack(limit: Int, hideFunction: String?): Array<ScriptStackElement>
Link copied to clipboard
fun getScriptStackTrace(limit: Int, functionName: String?): String
Link copied to clipboard
fun initColumnNumber(columnNumber: Int)
Link copied to clipboard
fun initLineNumber(lineNumber: Int)
Link copied to clipboard
fun initLineSource(lineSource: String)
Link copied to clipboard
fun initSourceName(sourceName: String)

Each of these may be set once, and only to a real value.