method public static

ExceptionHandlerFormatter::format()

Класс: \Bitrix\Main\Diag\ExceptionHandlerFormatter

Сигнатура

public static format(Throwable $exception[, bool $htmlMode = false ][, int $level = 0 ]) : string

Параметры

$exception Throwable
$htmlMode bool = false
$level int = 0

Возвращаемое значение

string

Как применяется в ExceptionHandlerFormatter

ExceptionHandlerFormatter::format() — метод класса \Bitrix\Main\Diag\ExceptionHandlerFormatter модуля «Главный модуль».

Статический метод — вызывается через имя класса ExceptionHandlerFormatter, без создания объекта.

use Bitrix\Main\Diag\ExceptionHandlerFormatter;

$exception = null; // Throwable
$result = ExceptionHandlerFormatter::format($exception);
// $result: string

Другие методы ExceptionHandlerFormatter

format() есть и у других классов модуля «Главный модуль»: Date, DateTime, LogFormatter, LogFormatterInterface.

Исходный файл: source/main/lib/diag/exceptionhandlerformatter.php:20

Что будем искать? Например,Продвижение