We're talking about a `json_encode()` for an error message, this is just cosmetics. It's not a critical bit of code where you do want to know when an error happened. IMHO it'll be much worse (and error prone) to set an error handler, then revert to the previous error handler after the exception message has been generated. What a mess!

Let's wait for more feedback?