throw new SbpServerException($sbpCode, 'no_version_for_provided_shopware_version',
$httpCode,
$requestException);
case 'UsersException-4': // Unauthorized
case 'OrdersException-0': // Order authentication failed
case 'PluginLicensesException-8': // Unauthorized
case 'UserTokensException-0': // Authorization failed!
case 'UserTokensException-1': // Token invalid.
case 'UserTokensException-2': // Given token is invalid.
case 'LicenseUpgradesException-0': // Given token is invalid.
case 'LdapTokensException-0': // Authorization failed.
throw new AuthenticationException($sbpCode, 'authentication',
$httpCode,
$requestException);
case 'UsersException-1': // Invalid parameters for registration.
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);