modules/acm_exception/src/EventSubscriber/RouteExceptionEventSubscriber.php
public function onException(RouteExceptionEvent $event) {
    $exception = $event->getException();
    $handler = \Drupal::service('acm_exception.route_exception_handler');
    $handler->message($exception);
    $handler->log($exception);
  }
public function onException(RouteExceptionEvent $event) {
    $exception = $event->getException();
    $handler = \Drupal::service('acm_exception.route_exception_handler');
    $handler->message($exception);
    $handler->log($exception);
  }
public function onException ( RouteExceptionEvent $ event ) { $ exception = $ event -> getException ( ) ; $ handler = \ Drupal :: service ( 'acm_exception.route_exception_handler' ) ; $ handler -> message ( $ exception ) ; $ handler -> log ( $ exception ) ; }
User messaging for RouteExceptions.

@param \Drupal\acm\RouteExceptionEvent $event
The event to process.
User messaging for RouteExceptions .