BackendBusyException  |  API reference  |  Android Developers (original) (raw)


open class BackendBusyException : ProviderException

kotlin.Any
kotlin.Throwable
java.lang.Exception
java.lang.RuntimeException
java.security.ProviderException

Indicates a transient error that prevented a key operation from being created. Callers should try again with a back-off period of [getBackOffHintMillis()](#getBackOffHintMillis%28%29) 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 getBackOffHintMillis() 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

BackendBusyException(backOffHintMillis: Long)

Constructs a new BackendBusyException without detail message and cause.

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

BackendBusyException

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

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

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.

Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.

Last updated 2025-02-10 UTC.