1. 8.5.x vendor/symfony/console/ConsoleEvents.php ConsoleEvents::EXCEPTION
  2. 8.0.x vendor/symfony/console/ConsoleEvents.php ConsoleEvents::EXCEPTION
  3. 8.1.x vendor/symfony/console/ConsoleEvents.php ConsoleEvents::EXCEPTION
  4. 8.2.x vendor/symfony/console/ConsoleEvents.php ConsoleEvents::EXCEPTION
  5. 8.3.x vendor/symfony/console/ConsoleEvents.php ConsoleEvents::EXCEPTION
  6. 8.4.x vendor/symfony/console/ConsoleEvents.php ConsoleEvents::EXCEPTION
  7. 8.6.x vendor/symfony/console/ConsoleEvents.php ConsoleEvents::EXCEPTION

The EXCEPTION event occurs when an uncaught exception appears.

This event allows you to deal with the exception or to modify the thrown exception. The event listener method receives a Symfony\Component\Console\Event\ConsoleExceptionEvent instance.

Related topics

File

vendor/symfony/console/ConsoleEvents.php, line 60

Class

ConsoleEvents
Contains all events dispatched by an Application.

Namespace

Symfony\Component\Console

Code

const EXCEPTION = 'console.exception';