Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
exceptionhandleroutput.php
1<?php
2namespace Bitrix\Main\Diag;
3
5
6Main\Localization\Loc::loadMessages(__FILE__);
7
9{
14 public function renderExceptionMessage($exception, $debug = false)
15 {
16 if ($debug)
17 {
18 echo ExceptionHandlerFormatter::format($exception, false);
19 }
20 else
21 {
22 $context = Main\Application::getInstance();
23 if ($context)
24 echo Main\Localization\Loc::getMessage("eho_render_exception_message");
25 else
26 echo "A error occurred during execution of this script. You can turn on extended error reporting in .settings.php file.";
27 }
28 }
29}
static format($exception, $htmlMode=false, $level=0)