Interface PurchasesError

Type encapsulating an error in an SDK operation.

interface PurchasesError {
    code: PURCHASES_ERROR_CODE;
    message: string;
    readableErrorCode: string;
    underlyingErrorMessage: string;
    userCancelled: null | boolean;
    userInfo: ErrorInfo;
}

Properties

message: string
readableErrorCode: string

Deprecated

access readableErrorCode through userInfo.readableErrorCode

underlyingErrorMessage: string
userCancelled: null | boolean

Deprecated

use code === Purchases.PURCHASES_ERROR_CODE.PURCHASE_CANCELLED_ERROR instead

userInfo: ErrorInfo