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

Method message

crates/c-api/include/wasmtime/trap.hh:124–130  ·  view source on GitHub ↗

Returns the descriptive message associated with this trap.

Source from the content-addressed store, hash-verified

122
123 /// Returns the descriptive message associated with this trap.
124 std::string message() const {
125 wasm_byte_vec_t msg;
126 wasm_trap_message(ptr.get(), &msg);
127 std::string ret(msg.data, msg.size - 1);
128 wasm_byte_vec_delete(&msg);
129 return ret;
130 }
131
132 /// Returns the trace of WebAssembly frames associated with this trap.
133 ///

Callers 11

unwrapFunction · 0.45
mainFunction · 0.45
TESTFunction · 0.45
unwrapFunction · 0.45
unwrapFunction · 0.45
TESTFunction · 0.45
TESTFunction · 0.45
unwrapFunction · 0.45
TESTFunction · 0.45
messageMethod · 0.45
fromMethod · 0.45

Calls 2

wasm_trap_messageFunction · 0.85
getMethod · 0.45

Tested by 7

TESTFunction · 0.36
unwrapFunction · 0.36
unwrapFunction · 0.36
TESTFunction · 0.36
TESTFunction · 0.36
unwrapFunction · 0.36
TESTFunction · 0.36