WasmLoadException

class WasmLoadException(message: String, cause: Throwable? = null) : WasmException

Thrown by WasmRuntime.load when a WASM module cannot be loaded into the sandbox.

Covers every load-time guard: the module declares an import (capability violation), it violates the memory ceiling (over-cap initial or max, no explicit max, or no linear memory at all), the bytes are malformed / not valid WASM, or a required warp ABI export (warp_alloc/warp_run) is missing. On implementations that instantiate eagerly at load, also covers a (start) function that traps or exceeds the execution budget.

Constructors

Link copied to clipboard
constructor(message: String, cause: Throwable? = null)

Properties

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