1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
httpexceptionhandleroutput.php
См. документацию.
1<?php
2namespace Bitrix\Main\Diag;
3
4use Bitrix\Main;
5
7
9{
16 public function renderExceptionMessage($exception, $debug = false)
17 {
19 $response->setStatus('500 Internal Server Error');
20 $response->writeHeaders();
21
22 if ($debug)
23 {
24 echo ExceptionHandlerFormatter::format($exception, true);
25 }
26 else
27 {
29 if (Main\IO\File::isFileExists($p))
30 {
31 include($p);
32 }
33 else
34 {
36 if ($application)
37 {
38 echo Main\Localization\Loc::getMessage("eho_render_exception_message");
39 }
40 else
41 {
42 echo "A error occurred during execution of this script. You can turn on extended error reporting in .settings.php file.";
43 }
44 }
45 }
46 }
47}
static getInstance()
Определения application.php:98
static format($exception, $htmlMode=false, $level=0)
Определения exceptionhandlerformatter.php:20
renderExceptionMessage($exception, $debug=false)
Определения httpexceptionhandleroutput.php:16
static convertRelativeToAbsolute($relativePath)
Определения path.php:286
static loadMessages($file)
Определения loc.php:65
static getMessage($code, $replace=null, $language=null)
Определения loc.php:30
$p
Определения group_list_element_edit.php:23
$application
Определения bitrix.php:23
Определения directory.php:3
$response
Определения result.php:21