Skip to content

FlattenException might also represent an instance of Error #9710

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 2, 2018
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
FlattenException might also represent an instance of Error.
  • Loading branch information
derrabus committed Apr 30, 2018
commit cd309c969ea803e495e9e43256849745b08344fe
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