Server IP : 80.87.202.40 / Your IP : 216.73.216.169 Web Server : Apache System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64 User : bitrix ( 600) PHP Version : 8.2.27 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/bitrix/ext_www/ilovecveti.ru/bitrix/modules/report/lib/visualconstructor/controller/ |
Upload File : |
<?php namespace Bitrix\Report\VisualConstructor\Controller; use Bitrix\Main\Config\Configuration; use Bitrix\Main\Engine\Controller; use Bitrix\Main\Error; /** * Abstract common controller class * @package Bitrix\Report\VisualConstructor\Controller */ abstract class Base extends Controller { /** * If debug mode on return last 3 lines of trace in error collection. * * @param \Exception $e Exception. * @return void */ 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'])); } } } }