• Модуль: location
  • Путь к файлу: ~/bitrix/modules/location/lib/infrastructure/service/errorservice.php
  • Класс: BitrixLocationInfrastructureServiceErrorService
  • Вызов: ErrorService::addError
public function addError(Error $error): void
{
	$this->errorCollection[] = $error;

	if($this->logErrors)
	{
		$this->logError($error);
	}

	if($this->throwExceptionOnError)
	{
		throw new SystemException(
			Loc::getMessage('LOCATION_ISTRUCTURE_ERRORSERVICE_ERROR'),
			ErrorCodes::ERRORSERVICE_ERROR_WAS_HAPPENED
		);
	}
}