AdaptyError

data class AdaptyError : Exception

Represents an error returned by the Adapty SDK.

Each instance contains a code indicating the type of error, a human-readable message, and an optional detail field with additional context.

You can use this to handle specific error cases, such as network issues or invalid configurations.

Example:

when (error.code) {
AdaptyErrorCode.NETWORK -> showRetryDialog()
else -> logError(error)
}

See also

Properties

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

The specific error code describing what went wrong.

Link copied to clipboard
val detail: String? = null

Optional additional information or context about the error.

Link copied to clipboard
open override val message: String

A human-readable error message.