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

Method message

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

Dispatches internally to return the message associated with this error.

Source from the content-addressed store, hash-verified

161
162 /// Dispatches internally to return the message associated with this error.
163 std::string message() const {
164 if (const auto *trap = std::get_if<Trap>(&data)) {
165 return trap->message();
166 }
167 if (const auto *error = std::get_if<Error>(&data)) {
168 return std::string(error->message());
169 }
170 std::abort();
171 }
172};
173
174/// Result used by functions which can fail because of invariants being violated

Callers

nothing calls this directly

Calls 2

abortFunction · 0.85
messageMethod · 0.45

Tested by

no test coverage detected