private void handleError(int response) { Billing.error("Error response: " + response + " in Purchase/ChangePurchase request"); onError(response, new BillingException(response)); }
static void error(@Nonnull String message, @Nonnull Exception e) { if (e instanceof BillingException) { final BillingException be = (BillingException) e; switch (be.getResponse()) { case ResponseCodes.OK: case ResponseCodes.USER_CANCELED: case ResponseCodes.ACCOUNT_ERROR: sLogger.e(TAG, message, e); break; default: sLogger.e(TAG, message, e); } } else { sLogger.e(TAG, message, e); } }
protected void onError(int response) { String message = ResponseCodes.toString(response); Billing.error("Error response: " + message + " in " + this + " request"); onError(response, new BillingException(response)); }