• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/volume/base.php
  • Класс: Bitrix\Crm\Volume\Base
  • Вызов: Base::collectError
public function collectError($errors)
{
	if (!($this->errorCollection instanceof Main\ErrorCollection))
	{
		$this->errorCollection = new Main\ErrorCollection();
	}

	if (is_array($errors))
	{
		$this->errorCollection->add($errors);
	}
	else
	{
		$this->errorCollection->add(array($errors));
	}
}