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