Marshal HttpResponseException in GooglePlayBillingManager

This commit is contained in:
ravi-signal
2025-10-06 12:18:51 -05:00
committed by GitHub
parent d6c15ef1d5
commit 9751569dc7
2 changed files with 5 additions and 3 deletions

View File

@@ -359,8 +359,10 @@ public class GooglePlayBillingManager implements SubscriptionPaymentProcessor {
? ((GoogleJsonResponseException) e).getDetails().toString()
: "";
logger.warn("Unexpected HTTP status code {} from androidpublisher: {}", e.getStatusCode(), details);
throw new UncheckedIOException(e);
final String message =
String.format("Unexpected HTTP status code %s from androidpublisher: %s", e.getStatusCode(), details);
logger.warn(message);
throw new UncheckedIOException(new IOException(message));
} catch (IOException e) {
throw new UncheckedIOException(e);
}