You are here

public function GetResponseForExceptionEvent::setException in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-kernel/Event/GetResponseForExceptionEvent.php \Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent::setException()

Replaces the thrown exception.

This exception will be thrown if no response is set in the event.

Parameters

\Exception $exception The thrown exception:

1 call to GetResponseForExceptionEvent::setException()
GetResponseForExceptionEvent::__construct in vendor/symfony/http-kernel/Event/GetResponseForExceptionEvent.php

File

vendor/symfony/http-kernel/Event/GetResponseForExceptionEvent.php, line 63

Class

GetResponseForExceptionEvent
Allows to create a response for a thrown exception.

Namespace

Symfony\Component\HttpKernel\Event

Code

public function setException(\Exception $exception) {
  $this->exception = $exception;
}