For example, if I don't define the pg_conn_str variable in the Postgres sample, I get wasm trap: indirect call type mismatch.
But some other exceptions do get handled by the "CLR method returned an exception, send a 500 response" check. And I haven't yet figured out what the difference is.