exception.beforeRender
Triggered in October\Rain\Foundation\Exception\Handler.
Fires as the exception renders and returns an optional custom response.
Example usage
Event::listen('exception.beforeRender', function (\Exception $exception) {
return 'An error happened!';
});