Right. You have to use anvil.server._register_exception_type
as described above. I’ve used Owen’s code and it works reliably with the flow you’re wanting, @joshelbahrawy.
Alas, it hasn’t changed, as far as I can tell. +1 for documenting it, please.