AdaptyErrorCode

Enumerates all possible error codes returned by the Adapty SDK.

Each AdaptyError includes a corresponding AdaptyErrorCode that helps identify the source or type of failure, such as network issues, StoreKit problems, or internal SDK errors.

These values may come from:

  • System StoreKit errors (for iOS and macOS)

  • Platform or SDK-level issues

  • Adapty backend errors

You can use this to implement more granular error handling and user feedback.

Example:

when (error.code) {
AdaptyErrorCode.PAYMENT_CANCELLED -> showMessage("Purchase cancelled.")
AdaptyErrorCode.ITEM_UNAVAILABLE -> showMessage("This item is not available.")
else -> logError(error)
}

See also

Entries

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.