• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/engine/controller.php
  • Класс: BitrixMainEngineController
  • Вызов: Controller::processExceptionInDebug
private function processExceptionInDebug(Throwable $e)
{
	if ($this->shouldWriteToLogException($e))
	{
		$this->writeToLogException($e);
	}

	$exceptionHandling = Configuration::getValue('exception_handling');
	if (!empty($exceptionHandling['debug']))
	{
		$this->addError(new Error(ExceptionHandlerFormatter::format($e)));
		if ($e->getPrevious())
		{
			$this->addError(new Error(ExceptionHandlerFormatter::format($e->getPrevious())));
		}
	}
}