Contao\CoreBundle\EventListener\PrettyErrorScreenListener::renderErrorScreenByType PHP Method

renderErrorScreenByType() private method

Renders the error screen.
private renderErrorScreenByType ( integer $type, GetResponseForExceptionEvent $event )
$type integer
$event Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent
    private function renderErrorScreenByType($type, GetResponseForExceptionEvent $event)
    {
        static $processing;
        if (true === $processing) {
            return;
        }
        $processing = true;
        if (null !== ($response = $this->getResponseFromPageHandler($type))) {
            $event->setResponse($response);
        }
        $processing = false;
    }