Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions create_framework/http_kernel_httpkernel_class.rst
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ make your error management configurable::
$dispatcher->addSubscriber(new HttpKernel\EventListener\ExceptionListener($errorHandler));

``ExceptionListener`` gives you a ``FlattenException`` instance instead of the
thrown ``Exception`` instance to ease exception manipulation and display. It
can take any valid controller as an exception handler, so you can create an
ErrorController class instead of using a Closure::
thrown ``Exception`` or ``Error`` instance to ease exception manipulation and
display. It can take any valid controller as an exception handler, so you can
create an ErrorController class instead of using a Closure::

$listener = new HttpKernel\EventListener\ExceptionListener(
'Calendar\Controller\ErrorController::exceptionAction'
Expand Down