From cd309c969ea803e495e9e43256849745b08344fe Mon Sep 17 00:00:00 2001 From: "Alexander M. Turek" Date: Mon, 30 Apr 2018 12:34:12 +0200 Subject: [PATCH] FlattenException might also represent an instance of Error. --- create_framework/http_kernel_httpkernel_class.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/create_framework/http_kernel_httpkernel_class.rst b/create_framework/http_kernel_httpkernel_class.rst index b8865d3a143..f77fa38d11c 100644 --- a/create_framework/http_kernel_httpkernel_class.rst +++ b/create_framework/http_kernel_httpkernel_class.rst @@ -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'