• Модуль: rest
  • Путь к файлу: ~/bitrix/modules/rest/lib/marketplace/Trial.php
  • Класс: BitrixRestMarketplaceTrial
  • Вызов: Trial::getError
static function getError(string $message, string $description = '', $code = null): array
{
	$error = ['error' => $message];

	if ($description !== '')
	{
		$error['error_description'] = $description;
	}

	if (!is_null($code))
	{
		$error['error_code'] = $code;
	}

	return $error;
}