Ojs\CoreBundle\Listeners\ExceptionListener::onKernelException PHP Method

onKernelException() public method

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);
        }
    }