Contao\CoreBundle\EventListener\PrettyErrorScreenListener::getTemplateForException PHP Метод

getTemplateForException() приватный Метод

Maps an exception to a template.
private getTemplateForException ( Exception $exception ) : string | null
$exception Exception
Результат string | null
    private function getTemplateForException(\Exception $exception)
    {
        foreach ($this->mapper as $class => $template) {
            if ($exception instanceof $class) {
                return $template;
            }
        }
        return null;
    }