I am developing an API Service Layer for a client and I have been requested to catch and log all errors globally.
So, while something like an un
Wrap the whole thing in a try/catch and log the unhandled exception, then pass it on. Unless there's a better built-in way to do it.
Here's a reference Catch All (handled or unhandled) Exceptions
(edit: oh API)