You are here

public function ConsoleExceptionEvent::__construct in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/console/Event/ConsoleExceptionEvent.php \Symfony\Component\Console\Event\ConsoleExceptionEvent::__construct()

Overrides ConsoleEvent::__construct

File

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

Class

ConsoleExceptionEvent
Allows to handle exception thrown in a command.

Namespace

Symfony\Component\Console\Event

Code

public function __construct(Command $command, InputInterface $input, OutputInterface $output, \Exception $exception, $exitCode) {
  parent::__construct($command, $input, $output);
  $this
    ->setException($exception);
  $this->exitCode = (int) $exitCode;
}