Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 953dbd4

Browse filesBrowse files
committed
minor #9710 FlattenException might also represent an instance of Error (derrabus)
This PR was merged into the master branch. Discussion ---------- FlattenException might also represent an instance of Error This PR documents symfony/symfony#26528 and fixes #9636. Commits ------- cd309c9 FlattenException might also represent an instance of Error.
2 parents a6a8c37 + cd309c9 commit 953dbd4
Copy full SHA for 953dbd4

File tree

1 file changed

+3
-3
lines changed
Filter options

1 file changed

+3
-3
lines changed

‎create_framework/http_kernel_httpkernel_class.rst

Copy file name to clipboardExpand all lines: create_framework/http_kernel_httpkernel_class.rst
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,9 @@ make your error management configurable::
7777
$dispatcher->addSubscriber(new HttpKernel\EventListener\ExceptionListener($errorHandler));
7878

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

8484
$listener = new HttpKernel\EventListener\ExceptionListener(
8585
'Calendar\Controller\ErrorController::exceptionAction'

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.