WasmThrowException Class

WebAssembly threw an exception (throw, throw_ref), or a host function throws an exception in WebAssembly: a WasmHostCallback that throws this exception throws WasmThrowException.Exception in WebAssembly, where it can be caught.

public sealed class WasmThrowException : WasmException
Inheritance
WasmException WasmThrowException

Constructors

NameDescription
WasmThrowException(WasmExceptionReference)Creates an exception.

WasmThrowException(WasmExceptionReference)

WasmExceptions.cs

Creates an exception.

public WasmThrowException(WasmExceptionReference exception)

Parameters

exception WasmExceptionReference
The WebAssembly exception (see WasmStore.CreateException).

Properties

NameDescription
ExceptionGets the WebAssembly exception.

Gets the WebAssembly exception.

public WasmExceptionReference Exception { get; }