Closed phazei closed 9 years ago
It will catch anything thrown within the dispatch. Then it calls the default handler that would normally take care of the exception, and gets the response from that as dispatch and treats it accordingly.
This was inspired by #7
In Laravel 5 I think it's this:
$dispatch = App::__get('Illuminate\Contracts\Debug\ExceptionHandler')->render($request, $e);
It will catch anything thrown within the dispatch. Then it calls the default handler that would normally take care of the exception, and gets the response from that as dispatch and treats it accordingly.