1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
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\Application\getInstance
static getInstance()
Определения
application.php:98
Bitrix\Main\Diag\ExceptionHandlerFormatter\format
static format($exception, $htmlMode=false, $level=0)
Определения
exceptionhandlerformatter.php:20
Bitrix\Main\Diag\ExceptionHandlerOutput
Определения
exceptionhandleroutput.php:9
Bitrix\Main\Diag\ExceptionHandlerOutput\renderExceptionMessage
renderExceptionMessage($exception, $debug=false)
Определения
exceptionhandleroutput.php:14
Bitrix\Main\Localization\Loc\loadMessages
static loadMessages($file)
Определения
loc.php:65
Bitrix\Main\Localization\Loc\getMessage
static getMessage($code, $replace=null, $language=null)
Определения
loc.php:30
Bitrix\Main\Diag\IExceptionHandlerOutput
Определения
iexceptionhandleroutput.php:5
$context
$context
Определения
csv_new_setup.php:223
bitrix
modules
main
lib
diag
exceptionhandleroutput.php
Создано системой
1.14.0