MCPcopy Create free account
hub / github.com/bluejekyll/wasmtime-java / exception_to_err

Function exception_to_err

wasmtime-jni/src/wasm_exception.rs:42–47  ·  view source on GitHub ↗
(env: &JNIEnv<'j>, throwable: JThrowable<'j>)

Source from the content-addressed store, hash-verified

40}
41
42pub fn exception_to_err<'j>(env: &JNIEnv<'j>, throwable: JThrowable<'j>) -> Error {
43 let reporter = ReportJThrowable { env, throwable };
44
45 warn!("WASM caught an exception: {}", reporter);
46 anyhow!("WASM caught an exception: {}", reporter)
47}
48
49struct ReportJThrowable<'l, 'j: 'l> {
50 env: &'l JNIEnv<'j>,

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…