Using a custom error handler to customize how exceptions are reported to the ViewController