You are here

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\js

Code

public function onException(GetResponseForExceptionEvent $event) {
  $request = $event
    ->getRequest();
  if ($this->js
    ->isExecuting($request)) {
    $this->js
      ->exceptionHandler($event
      ->getException());
  }
}