PurchasesException

class PurchasesException(val code: PurchasesErrorCode, message: String, cause: Throwable? = null, val serverErrorCode: String? = null, val retryable: Boolean = false, val purchaseRejected: Boolean = false) : Exception

An error thrown by Purpl purchase and entitlement operations.

Constructors

Link copied to clipboard
constructor(code: PurchasesErrorCode, message: String, cause: Throwable? = null, serverErrorCode: String? = null, retryable: Boolean = false, purchaseRejected: Boolean = false)

Properties

Link copied to clipboard
open val cause: Throwable?
Link copied to clipboard

The kind of SDK error for the caller to handle.

Link copied to clipboard
open val message: String?
Link copied to clipboard

Whether the server explicitly reported the purchase as invalid, pending, or not completed.

Link copied to clipboard

Whether retrying the same request may succeed.

Link copied to clipboard

The stable error identifier returned by the server.