• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/diag/exceptionhandler.php
  • Класс: BitrixMainDiagExceptionHandler
  • Вызов: ExceptionHandler::handleFatalError
public function handleFatalError()
{
	$this->memoryReserve = null;
	if ($error = error_get_last())
	{
		if (($error['type'] & (E_ERROR | E_USER_ERROR | E_PARSE | E_CORE_ERROR | E_COMPILE_ERROR | E_RECOVERABLE_ERROR)))
		{
			if(($error['type'] & $this->handledErrorsTypes))
			{
				$exception = new ErrorException($error['message'], 0, $error['type'], $error['file'], $error['line']);
				$this->handleException($exception, ExceptionHandlerLog::FATAL);
			}
		}
	}
}