• Модуль: report
  • Путь к файлу: ~/bitrix/modules/report/lib/visualconstructor/controller/base.php
  • Класс: BitrixReportVisualConstructorControllerBase
  • Вызов: Base::runProcessingException
protected function runProcessingException(Exception $e)
{
	parent::runProcessingException($e);
	$exceptionHandling = Configuration::getValue('exception_handling');
	if (!empty($exceptionHandling['debug']))
	{
		$trace = $e->getTrace();

		$traceLength = count($trace);

		$this->addError(new Error($e->getFile() . ':' . $e->getLine()));


		for ($i = 0; $i < $traceLength && $i < 3; $i++)
		{
			$this->addError(new Error( '#' . $i . ' ' . $trace[$i]['file'] . ':' . $trace[$i]['line'] . '  ' .  $trace[$i]['function']));
		}

	}
}