Exception

open class Exception(exceptionTag: Tag, payload: ReadonlyArray<*>, options: ExceptionOptions = definedExternally)(source)

The WebAssembly.Exception object represents a runtime exception thrown from WebAssembly to JavaScript, or thrown from JavaScript to a WebAssembly exception handler.

MDN Reference

Constructors

Link copied to clipboard
constructor(exceptionTag: Tag, payload: ReadonlyArray<*>, options: ExceptionOptions = definedExternally)

Properties

Link copied to clipboard

The read-only stack property of an object instance of type WebAssembly.Exception may contain a stack trace.

Functions

Link copied to clipboard
fun getArg(index: Int): JsAny

The getArg() prototype method of the Exception object can be used to get the value of a specified item in the exception's data arguments.

Link copied to clipboard
fun is(exceptionTag: Tag): Boolean

The is() prototype method of the Exception object can be used to test if the Exception matches a given tag.