Open
Description
It would be useful to have the option to tell tell Turing that if it encounters any errors encountered whatsoever during sampling, to just reject the proposal.
This would make for simpler/more elegant code on the user end. Error handling can be optimised by Turing devs, for everyone's benefit, and relatedly will reduce frustration for new users encountering errors in perfectly well formulated models.
I believe Stan does something like this by default i.e. I have never had to (and wouldn't know how to) handle errors during sampling in Stan. It just throughs a warning, rejects the proposal and keeps going.