• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/error.php
  • Класс: BitrixMainError
  • Вызов: Error::jsonSerialize
public function jsonSerialize()
{
	return [
		'message' => $this->getMessage(),
		'code' => $this->getCode(),
		'customData' => $this->getCustomData(),
	];
}