-
- All Implemented Interfaces:
-
java.io.Serializable
public class BillingError extends Exception
Typed billing errors emitted by the SDK. Mirrors iOS
Billing/NativeBillingManager.swiftpublic enum BillingError. Hosts canwhenover this sealed class inonPaywallPurchaseFailed/onPurchaseFailedcallbacks instead of regex-matching error messages.SPEC-070-A finalization ยง3.2.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBillingError.ProductNotFoundProduct id was not found by Play Billing or the local catalog.
public final classBillingError.VerificationFailedServer-side receipt verification failed (signature/state/refund).
public final classBillingError.NetworkErrorNetwork error during purchase or verification call.
public final classBillingError.ServerErrorServer returned a non-2xx with a message body the SDK couldn't decode.
public final classBillingError.ProviderNotAvailableSelected billing provider (RevenueCat / Adapty) wasn't on the classpath at runtime so the call could not be dispatched. iOS uses this when SwiftPM extras are excluded from the host target.
public final classBillingError.UserCancelledUser cancelled the Play Billing dialog (BillingResponseCode.USER_CANCELED).
public final classBillingError.PendingPending purchase (e.g. parent approval, deferred payment).
-
Method Summary
Modifier and Type Method Description ThrowablegetCause()StringgetMessage()-
Methods inherited from class java.lang.Exception
addSuppressed, fillInStackTrace, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getMessage
String getMessage()
-
-
-
-