• Модуль: timeman
  • Путь к файлу: ~/bitrix/modules/timeman/lib/service/baseservice.php
  • Класс: BitrixTimemanServiceBaseService
  • Вызов: BaseService::safeRun
protected function safeRun($result = null)
{
	if ($this->isSuccess($result))
	{
		return $result;
	}
	if ($this->stopOnFirstError)
	{
		throw (new BaseServiceException())->setResult($result);
	}
	// for now it always stops on first error
}