(env: &JNIEnv<'j>, throwable: JThrowable<'j>)
| 40 | } |
| 41 | |
| 42 | pub 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 | |
| 49 | struct ReportJThrowable<'l, 'j: 'l> { |
| 50 | env: &'l JNIEnv<'j>, |
no outgoing calls
no test coverage detected
searching dependent graphs…