• Модуль: timeman
  • Путь к файлу: ~/bitrix/modules/timeman/lib/service/baseserviceresult.php
  • Класс: BitrixTimemanServiceBaseServiceResult
  • Вызов: BaseServiceResult::createWithErrorText
static function createWithErrorText($text, $code = 0)
{
	return (new static())->addError(new Error($text, $code));
}