• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/diag/exceptionhandler.php
  • Класс: BitrixMainDiagExceptionHandler
  • Вызов: ExceptionHandler::handleError
public function handleError($code, $message, $file, $line)
{
	$exception = new ErrorException($message, 0, $code, $file, $line);

	if (!$this->ignoreSilence)
	{
		$errorReporting = error_reporting();
		if (
			$errorReporting === 0 //Prior to PHP 8.0.0
			|| $errorReporting === (E_ERROR | E_CORE_ERROR | E_COMPILE_ERROR | E_USER_ERROR | E_RECOVERABLE_ERROR | E_PARSE)
		)
		{
			return true;
		}
	}

	if (!$this->isFileInTrackedModules($file))
	{
		return true;
	}

	if ($code & $this->exceptionErrorsTypes)
	{
		throw $exception;
	}
	else
	{
		$this->writeToLog($exception, ExceptionHandlerLog::LOW_PRIORITY_ERROR);
		return true;
	}
}