MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / throw_exception

Method throw_exception

crates/c-api/include/wasmtime/store.hh:20–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18
19#ifdef WASMTIME_FEATURE_GC
20inline Trap Store::Context::throw_exception(ExnRef exn) {
21 return Trap(wasmtime_context_set_exception(capi(), exn.capi()));
22}
23
24inline std::optional<ExnRef> Store::Context::take_exception() {
25 wasmtime_exnref_t exn;

Callers 1

TESTFunction · 0.80

Calls 4

TrapClass · 0.70
capiFunction · 0.70
capiMethod · 0.45

Tested by 1

TESTFunction · 0.64