• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/userconsent/rest.php
  • Класс: BitrixMainUserConsentRest
  • Вызов: Rest::printErrors
static function printErrors(array $errors)
{
	foreach ($errors as $error)
	{
		throw new RestException(
			$error->getMessage(),
			RestException::ERROR_ARGUMENT,
			CRestServer::STATUS_WRONG_REQUEST
		);
	}
}