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

Method take_exception

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

Source from the content-addressed store, hash-verified

22}
23
24inline std::optional<ExnRef> Store::Context::take_exception() {
25 wasmtime_exnref_t exn;
26 if (wasmtime_context_take_exception(capi(), &exn)) {
27 return ExnRef(exn);
28 }
29 return std::nullopt;
30}
31
32inline bool Store::Context::has_exception() {
33 return wasmtime_context_has_exception(capi());

Callers 1

TESTFunction · 0.80

Calls 3

capiFunction · 0.70
ExnRefClass · 0.70

Tested by 1

TESTFunction · 0.64