The EXCEPTION event occurs when an uncaught exception appears
This event allows you to create a response for a thrown exception or to modify the thrown exception. The event listener method receives a Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent instance.
@api
const EXCEPTION = 'kernel.exception';