summaryrefslogtreecommitdiff
path: root/vendor/symfony/http-kernel/Event/ExceptionEvent.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/symfony/http-kernel/Event/ExceptionEvent.php')
-rw-r--r--vendor/symfony/http-kernel/Event/ExceptionEvent.php29
1 files changed, 29 insertions, 0 deletions
diff --git a/vendor/symfony/http-kernel/Event/ExceptionEvent.php b/vendor/symfony/http-kernel/Event/ExceptionEvent.php
new file mode 100644
index 0000000000..d3b2d8f606
--- /dev/null
+++ b/vendor/symfony/http-kernel/Event/ExceptionEvent.php
@@ -0,0 +1,29 @@
+<?php
+
+/*
+ * This file is part of the Symfony package.
+ *
+ * (c) Fabien Potencier <fabien@symfony.com>
+ *
+ * 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 setException() to replace the thrown exception. This
+ * exception will be thrown if no response is set during processing of this
+ * event.
+ *
+ * @author Bernhard Schussek <bschussek@gmail.com>
+ */
+class ExceptionEvent extends GetResponseForExceptionEvent
+{
+}