Ojs\CoreBundle\Listeners\ExceptionListener::onKernelException PHP Метод

onKernelException() публичный Метод

public onKernelException ( GetResponseForExceptionEvent $event )
$event Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent
    public function onKernelException(GetResponseForExceptionEvent $event)
    {
        $exception = $event->getException();
        if ($exception instanceof HasRelationException) {
            $this->onHasRelationException($event);
        }
        if ($exception instanceof MethodNotAllowedHttpException) {
            $this->onMethodNotAllowedHttpException($event);
        }
    }