Structure

SKError

StoreKit error descriptions, codes, and domain.

Declaration

struct SKError

Topics

Getting Error Properties

var errorCode: Int

The error code that this instance represents.

var errorUserInfo: [String : Any]

An info dictionary for providing additional details about an error.

var localizedDescription: String

A string containing the localized description of the error.

Error Codes

enum SKError.Code

Error codes for StoreKit errors.

static var unknown: SKError.Code

Error code indicating that an unknown or unexpected error occurred.

static var clientInvalid: SKError.Code

Error code indicating that the client is not allowed to perform the attempted action.

static var paymentCancelled: SKError.Code

Error code indicating that the user canceled a payment request.

static var paymentInvalid: SKError.Code

Error code indicating that one of the payment parameters was not recognized by the App Store.

static var paymentNotAllowed: SKError.Code

Error code indicating that the user is not allowed to authorize payments.

static var storeProductNotAvailable: SKError.Code

Error code indicating that the requested product is not available in the store.

static var cloudServicePermissionDenied: SKError.Code

Error code indicating that the user has not allowed access to Cloud service information.

static var cloudServiceNetworkConnectionFailed: SKError.Code

Error code indicating that the device could not connect to the network.

static var cloudServiceRevoked: SKError.Code

Error code indicating that the user has revoked permission to use this cloud service.

static var privacyAcknowledgementRequired: SKError.Code

Error code indicating that the user has not yet acknowledged Apple’s privacy policy for Apple Music.

static var unauthorizedRequestData: SKError.Code

Error code indicating that the app is attempting to use a property for which it does not have the required entitlement.

static var invalidOfferIdentifier: SKError.Code

Error code indicating that the offer identifier cannot be found or is not active.

static var invalidOfferPrice: SKError.Code

Error code indicating that the price you specified in App Store Connect is no longer valid.

static var invalidSignature: SKError.Code

Error code indicating that the signature in a payment discount is not valid.

static var missingOfferParams: SKError.Code

Error code indicating that parameters are missing in a payment discount.

Error Domain

static var errorDomain: String

Gets the error domain that identifies an error as a StoreKit error.

let SKErrorDomain: String

The error domain name for StoreKit errors.

Determining Error Code Inequality

static func != (SKError, SKError) -> Bool

Returns a Boolean value indicating whether two values are not equal.

See Also

Errors

Handling Errors

Handle errors resulting from StoreKit requests.

enum SKError.Code

Error codes for StoreKit errors.

let SKErrorDomain: String

The error domain name for StoreKit errors.