• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/diag/exceptionhandlerformatter.php
  • Класс: BitrixMainDiagExceptionHandlerFormatter
  • Вызов: ExceptionHandlerFormatter::format
static function format($exception, $htmlMode = false, $level = 0)
{
	$formatter = new LogFormatter((bool)($level & static::SHOW_PARAMETERS), static::MAX_CHARS);

	$result = $formatter->format("{exception}{trace}{delimiter}n", [
		'exception' => $exception,
		'trace' => static::getTrace($exception),
	]);

	if ($htmlMode)
	{
		$result = '
'.MainTextHtmlFilter::encode($result).'
'; } return $result; }