Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
base.php
1<?php
2
4
8
13abstract class Base extends Controller
14{
15
22 protected function runProcessingException(\Exception $e)
23 {
24 parent::runProcessingException($e);
25 $exceptionHandling = Configuration::getValue('exception_handling');
26 if (!empty($exceptionHandling['debug']))
27 {
28 $trace = $e->getTrace();
29
30 $traceLength = count($trace);
31
32 $this->addError(new Error($e->getFile() . ':' . $e->getLine()));
33
34
35 for ($i = 0; $i < $traceLength && $i < 3; $i++)
36 {
37 $this->addError(new Error( '#' . $i . ' ' . $trace[$i]['file'] . ':' . $trace[$i]['line'] . ' ' . $trace[$i]['function']));
38 }
39
40 }
41 }
42}