MCPcopy Create free account
hub / github.com/dylan-sutton-chavez/edge-python / stash_error

Function stash_error

compiler/src/main/errors.rs:25–29  ·  view source on GitHub ↗
(e: VmErr)

Source from the content-addressed store, hash-verified

23}
24
25pub(super) fn stash_error(e: VmErr) {
26 let kind = err_to_kind(&e);
27 let msg = e.render();
28 with_runtime(|rt| rt.error_stash.set_typed(kind, msg));
29}
30
31/* Inverse of `err_to_kind`: rebuilds a `VmErr` from (kind, msg). Exhaustive over `ErrorKind` so new variants can't slip into `Raised`. */
32pub(super) fn error_from_kind(kind: u32, msg: String) -> VmErr {

Callers 1

host_edge_opFunction · 0.70

Calls 4

err_to_kindFunction · 0.85
with_runtimeFunction · 0.85
set_typedMethod · 0.80
renderMethod · 0.45

Tested by

no test coverage detected