public function EventSubscriber::onException in JS Callback Handler 8.3
Parameters
\Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent $event:
File
- src/
EventSubscriber.php, line 67
Class
- EventSubscriber
- RouteSubscriber.
Namespace
Drupal\jsCode
public function onException(GetResponseForExceptionEvent $event) {
$request = $event
->getRequest();
if ($this->js
->isExecuting($request)) {
$this->js
->exceptionHandler($event
->getException());
}
}