Now, the same 500 error page occurs whenever there is an exception raised, even when it's a ForbiddenException.
What I'd like to do is to show a customized page or response for exceptions
As far as I know, I can simply add a try catch block around $runner->run();
in Server.php
, and dispatch an exception event to be handled.
I regard exception handler is essential, but why this mechanism is not included in the core now? Is there any problem with this solution? When will there be an official exception handling mechanism?