JavaScriptException

class JavaScriptException(val value: Any?, sourceName: String?, lineNumber: Int) : RhinoException

A JavaScript throw that reached Kotlin: value is whatever the script threw.

Constructors

Link copied to clipboard
constructor(value: Any?, sourceName: String?, lineNumber: Int)

Properties

Link copied to clipboard
expect open val cause: Throwable?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
override val message: String
Link copied to clipboard

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

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val value: Any?

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.