Error

abstract class Error(extraProps: Array<Pair<String, Value>>) : RuntimeException, AbstractJsException, GuestError, ProxyObject

JavaScript Error

Describes the generic interface defined by JavaScript guest errors; properties on instances of this class are made available to guest code.

Inheritors

Constructors

Link copied to clipboard
constructor()

Empty constructor with no extra properties.

constructor(extraProps: Array<Pair<String, Value>>)

Properties

Link copied to clipboard
open override val cause: Error?

Causing Error which this error wraps, if any.

Link copied to clipboard
open val columnNumber: Int?

Column number where the error was thrown, if any or if known.

Link copied to clipboard
open val errno: Int?

Error number assigned to this error (also known as the error code).

Link copied to clipboard
open val fileName: String?

File name where the error was thrown, if any or if known.

Link copied to clipboard
open val lineNumber: Int?

Line number where the error was thrown, if any or if known.

Link copied to clipboard
abstract override val message: String

String message associated with this error, associated at construction time.

Link copied to clipboard
abstract val name: String

Name of the cause or type of this error, if any.

Link copied to clipboard

Stack trace for this error.

Functions

Link copied to clipboard
open override fun getMember(key: String?): Any?
Link copied to clipboard
open override fun getMemberKeys(): Array<String>
Link copied to clipboard
open override fun hasMember(key: String?): Boolean
Link copied to clipboard
open override fun putMember(key: String?, value: Value?)
Link copied to clipboard
open fun removeMember(key: String): Boolean