protected function getExceptionTemplate($exception)
{
$lang = Prado::getPreferredLanguage();
$exceptionFile = Prado::getFrameworkPath() . '/Exceptions/templates/' . self::EXCEPTION_FILE_NAME . '-' . $lang . '.html';
if (!is_file($exceptionFile)) {
$exceptionFile = Prado::getFrameworkPath() . '/Exceptions/templates/' . self::EXCEPTION_FILE_NAME . '.html';
}
if (($content = @file_get_contents($exceptionFile)) === false) {
die("Unable to open exception template file '{$exceptionFile}'.");
}
return $content;
}