• Модуль: iblock
  • Путь к файлу: ~/bitrix/modules/iblock/lib/component/base.php
  • Класс: BitrixIblockComponentBase
  • Вызов: Base::processErrors
protected function processErrors()
{
	if (!empty($this->errorCollection))
	{
		/** @var Error $error */
		foreach ($this->errorCollection as $error)
		{
			$code = $error->getCode();

			if ($code == self::ERROR_404)
			{
				Tools::process404(
					trim($this->arParams['MESSAGE_404']) ?: $error->getMessage(),
					true,
					$this->arParams['SET_STATUS_404'] === 'Y',
					$this->arParams['SHOW_404'] === 'Y',
					$this->arParams['FILE_404']
				);
			}
			elseif ($code == self::ERROR_TEXT)
			{
				ShowError($error->getMessage());
			}
		}
	}

	return false;
}