Skip to content

Commit 6630a99

Browse files
authored
Update http_kernel.rst
1 parent 2238849 commit 6630a99

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

components/http_kernel.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,7 @@ exception and create an appropriate error ``Response``.
533533
For example, to generate a 404 page, you might throw a special type of exception
534534
and then add a listener on this event that looks for this exception and
535535
creates and returns a 404 ``Response``. In fact, the HttpKernel component
536-
comes with an :class:`Symfony\\Component\\HttpKernel\\EventListener\\ExceptionListener`,
536+
comes with an :class:`Symfony\\Component\\HttpKernel\\EventListener\\ErrorListener`,
537537
which if you choose to use, will do this and more by default (see the sidebar
538538
below for more details).
539539

@@ -547,10 +547,10 @@ below for more details).
547547
There are two main listeners to ``kernel.exception`` when using the
548548
Symfony Framework.
549549

550-
**ExceptionListener in the HttpKernel Component**
550+
**ErrorListener in the HttpKernel Component**
551551

552552
The first comes core to the HttpKernel component
553-
and is called :class:`Symfony\\Component\\HttpKernel\\EventListener\\ExceptionListener`.
553+
and is called :class:`Symfony\\Component\\HttpKernel\\EventListener\\ErrorListener`.
554554
The listener has several goals:
555555

556556
1) The thrown exception is converted into a

0 commit comments

Comments
 (0)