throw new AccountException($sbpCode, 'registration',
$httpCode,
$requestException);
case 'UsersException-2': // ShopwareID is already taken
throw new AccountException($sbpCode, 'shopware_id_already_taken',
$httpCode,
$requestException);
case 'UsersException-3': // User is invalid
throw new AccountException($sbpCode, 'invalid_user',
$httpCode,
$requestException);
case 'UsersException-6': // Invalid password reset parameters
throw new AccountException($sbpCode, 'invalid_password_reset',
$httpCode,
$requestException);
case 'UserTokensException-3': // Account is banned.
throw new AccountException($sbpCode, 'account_banned',
$httpCode,
$requestException);
case 'OrdersException-1': // Ordered plugin not found
case 'PluginLicensesException-1': // Referenced plugin not found.
throw new OrderException($sbpCode, 'plugin_not_found',
$httpCode,
$requestException);
case 'OrdersException-4': // Insufficient balance
throw new OrderException($sbpCode, 'insufficient_balance',
$httpCode,
$requestException);
case 'OrdersException-3': // Empty order
case 'OrdersException-5': // Order invalid
case 'OrdersException-6': // Order position invalid
throw new OrderException($sbpCode, 'order_invalid',
$httpCode,
$requestException);
case 'OrdersException-7': // Shop version incompatible with license version
throw new OrderException($sbpCode, 'incompatible_version',
$httpCode,
$requestException);
case 'PluginLicensesException-0': // License not found.
throw new LicenceException($sbpCode, 'licence_not_found',
$httpCode,
$requestException);
case 'PluginLicensesException-2': // License is invalid.