115
117
// get the exception class
116
118
$exceptionClass = 'error-' . strtolower(str_replace('\\', '-', get_class($e)));
118
124
if (file_exists(PROJECT_ROOT . '/views/' . $exceptionClass . '.twig'))
119
125
$this->getState()->template = $exceptionClass;