Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
exceptionhandleroutput.php
1
<?php
2
namespace
Bitrix\Main\Diag
;
3
4
use
Bitrix\Main
;
5
6
Main\Localization\Loc::loadMessages(__FILE__);
7
8
class
ExceptionHandlerOutput
implements
IExceptionHandlerOutput
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
}
Bitrix\Main\Diag\ExceptionHandlerFormatter\format
static format($exception, $htmlMode=false, $level=0)
Definition
exceptionhandlerformatter.php:20
Bitrix\Main\Diag\ExceptionHandlerOutput
Definition
exceptionhandleroutput.php:9
Bitrix\Main\Diag\ExceptionHandlerOutput\renderExceptionMessage
renderExceptionMessage($exception, $debug=false)
Definition
exceptionhandleroutput.php:14
Bitrix\Main\Diag\IExceptionHandlerOutput
Definition
iexceptionhandleroutput.php:5
Bitrix\Main\Diag
Definition
cachetracker.php:2
Bitrix\Main
modules
main
lib
diag
exceptionhandleroutput.php
Создано системой
1.10.0