AdaptyError
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)
}Content copied to clipboard