Prado\Exceptions\TErrorHandler::getExceptionTemplate PHP Method

getExceptionTemplate() protected method

Internal exceptions will be displayed with source code causing the exception. This occurs when the application is in debug mode.
protected getExceptionTemplate ( $exception ) : string
return string the template content
    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;
    }