• Модуль: catalog
  • Путь к файлу: ~/bitrix/modules/catalog/lib/model/event.php
  • Класс: BitrixCatalogModelEvent
  • Вызов: Event::getErrors
public function getErrors(MainResult $result): bool
{
	$hasErrors = false;

	/** @var $eventResult MainEntityEventResult */
	foreach($this->getResults() as $eventResult)
	{
		if ($eventResult->getType() === MainEntityEventResult::ERROR)
		{
			$hasErrors = true;
			$result->addErrors($eventResult->getErrors());
		}
	}
	return $hasErrors;
}