You are here

public function ConsoleExceptionEvent::setException in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/console/Event/ConsoleExceptionEvent.php \Symfony\Component\Console\Event\ConsoleExceptionEvent::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 ConsoleExceptionEvent::setException()
ConsoleExceptionEvent::__construct in vendor/symfony/console/Event/ConsoleExceptionEvent.php

File

vendor/symfony/console/Event/ConsoleExceptionEvent.php, line 53

Class

ConsoleExceptionEvent
Allows to handle exception thrown in a command.

Namespace

Symfony\Component\Console\Event

Code

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