Added in API level 31

BackendBusyException

open class BackendBusyException : ProviderException
kotlin.Any
   ↳ kotlin.Throwable
   ↳ java.lang.Exception
   ↳ java.lang.RuntimeException
   ↳ java.security.ProviderException
   ↳ android.security.keystore.BackendBusyException

Indicates a transient error that prevented a key operation from being created. Callers should try again with a back-off period of getBackOffHintMillis() milliseconds.

Summary

Public constructors
BackendBusyException(backOffHintMillis: Long)

Constructs a new BackendBusyException without detail message and cause.

BackendBusyException(backOffHintMillis: Long, message: String)

Constructs a new BackendBusyException with the provided detail message and no cause.

BackendBusyException(backOffHintMillis: Long, message: String, cause: Throwable)

Constructs a new BackendBusyException with the provided detail message and cause.

Public methods
open Long

When retrying to start a Keystore operation after receiving this exception, this can be used to determine how long to wait before retrying.

Public constructors

BackendBusyException

Added in API level 31
BackendBusyException(backOffHintMillis: Long)

Constructs a new BackendBusyException without detail message and cause.

Parameters
backOffHintMillis Long: Value is a non-negative duration in milliseconds.

BackendBusyException

Added in API level 31
BackendBusyException(
    backOffHintMillis: Long,
    message: String)

Constructs a new BackendBusyException with the provided detail message and no cause.

Parameters
backOffHintMillis Long: Value is a non-negative duration in milliseconds.
message String: This value cannot be null.

BackendBusyException

Added in API level 31
BackendBusyException(
    backOffHintMillis: Long,
    message: String,
    cause: Throwable)

Constructs a new BackendBusyException with the provided detail message and cause.

Parameters
backOffHintMillis Long: Value is a non-negative duration in milliseconds.
message String: This value cannot be null.
cause Throwable: This value cannot be null.

Public methods

getBackOffHintMillis

Added in API level 31
open fun getBackOffHintMillis(): Long

When retrying to start a Keystore operation after receiving this exception, this can be used to determine how long to wait before retrying. It is not guaranteed that the operation will succeeds after this time. Multiple retries may be necessary if the system is congested.
Value is a non-negative duration in milliseconds.

Return
Long Number of milliseconds to back off before retrying. Value is a non-negative duration in milliseconds.