Symfony\Component\Console\Event\ConsoleExceptionEvent::setException
Replaces the thrown exception.
This exception will be thrown if no response is set in the event.
Signature
public function setException(Exception
$exception )
Parameters
$exception
— \Exception- The thrown exception