* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Console\Event; @trigger_error(sprintf('The "%s" class is deprecated since Symfony 3.3 and will be removed in 4.0. Use the ConsoleErrorEvent instead.', ConsoleExceptionEvent::class), E_USER_DEPRECATED); use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; /** * Allows to handle exception thrown in a command. * * @author Fabien Potencier * * @deprecated since version 3.3, to be removed in 4.0. Use ConsoleErrorEvent instead. */ class ConsoleExceptionEvent extends ConsoleEvent { private $exception; private $exitCode; public function __construct(Command $command, InputInterface $input, OutputInterface $output, \Exception $exception, $exitCode) { parent::__construct($command, $input, $output); $this->setException($exception); $this->exitCode = (int) $exitCode; } /** * Returns the thrown exception. * * @return \Exception The thrown exception */ public function getException() { return $this->exception; } /** * Replaces the thrown exception. * * This exception will be thrown if no response is set in the event. * * @param \Exception $exception The thrown exception */ public function setException(\Exception $exception) { $this->exception = $exception; } /** * Gets the exit code. * * @return int The command exit code */ public function getExitCode() { return $this->exitCode; } } __halt_compiler();----SIGNATURE:----sSJ7vUtImIfvsU0dUVP2QEXr3Rs/IGqrB1bvJe0hx4En5jDDEAn1PavCiJkdhGSxqZZ8bzjFTKW3TsXc0c/8T8Q6Ejog6anNWYOv16zvwCNK4WFBRYbFl0erCAl/ZwUaEM6W/WnTILE0nuU9Oal4L0AfrcSLveY9e8QPIQ/QXqb74pJicw9JoH3jaNhZxQmEeRq4jF8nPX/PPVOQESVcpyXOFqR2ypG2ckxoTEtXIV6r9cHnUVdProNYUFktPSGS2VJ83kJ/ZUkz0fVgDduxwDKQamdJ8wgQOux54rSJ+ni0dO85x0kbuNfNSatNc3l7MuiEZd0eKJDQj8P1lOSp8RLOh+a6sOkhSxsan2jh6HG3wi07o8R0M/uHNCMXzfNank0t4fMiBikHOPQehNovbY+RHIu/d4dtKvCyrMtlrmgerRoTV+9gh02DJanvtcawEBzxfcgMTPQ0Pk3B/zkiJx9r4WEezd8y/yhTHE3uUon0CQQKlavuZIPVlHGU01FrFQafVVscfi4MbQ8B84nf9IyL9uhS4LDKxlXRjAEMk6pkA9gJZJDqOtlH/IC9BjosgEl+L46YwX0KqiOE7FUR3BFJx1bdzwu0Yso4llY1ILr/mu7HY9T+ckXNthPTxd+hhuba73FeKzj3rAhdKeo+rQHZZ4kMnO/JBjTBW78Uyo4=----ATTACHMENT:----MjE1MTkyNzE2MjcxNDI0MSA1MjcwMzE4MjI3MDUzNzg2IDI3MTE1NDA1MTU5MDA5OTI=