Skip to content
Switch branches/tags
Go to file
Cannot retrieve contributors at this time
* This file is part of the Symfony package.
* (c) Fabien Potencier <>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
namespace Symfony\Component\HttpKernel\Event;
* Allows to create a response for a thrown exception.
* Call setResponse() to set the response that will be returned for the
* current request. The propagation of this event is stopped as soon as a
* response is set.
* You can also call setThrowable() to replace the thrown exception. This
* exception will be thrown if no response is set during processing of this
* event.
* @author Bernhard Schussek <>
* @final since Symfony 4.4
class ExceptionEvent extends GetResponseForExceptionEvent