MCPcopy Create free account
hub / github.com/f0rr0/oliphaunt / is_wasm_uncaught_exception

Function is_wasm_uncaught_exception

src/pglite/postgres_mod.rs:2990–2995  ·  view source on GitHub ↗
(err: &wasmer::RuntimeError)

Source from the content-addressed store, hash-verified

2988}
2989
2990fn is_wasm_uncaught_exception(err: &wasmer::RuntimeError) -> bool {
2991 // Wasmer reports an uncaught WebAssembly exception when PostgreSQL ERROR
2992 // unwinds across the exported loop boundary. The C recovery export then
2993 // performs the normal Postgres error cleanup and emits ErrorResponse.
2994 err.message().contains("uncaught exception")
2995}
2996
2997fn host_requires_process_exit_error_recovery() -> bool {
2998 // Wasmer does not implement nested WebAssembly exception throws on MSVC

Callers 3

send_protocol_innerMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected