Exception

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

The WebAssembly.Exception object represents a runtime exception thrown in a Wasm module.

MDN Reference

Constructors

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

Properties

Link copied to clipboard
open external val stack: String?

The stack read-only property of the WebAssembly.Exception object may contain a stack trace.

Functions

Link copied to clipboard
open external fun getArg(exceptionTag: Tag, index: Int): JsAny?

The getArg() 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
open external fun is(exceptionTag: Tag): Boolean

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