Added in API level 34

ClearCredentialStateException


open class ClearCredentialStateException : Exception
kotlin.Any
   ↳ kotlin.Throwable
   ↳ java.lang.Exception
   ↳ android.credentials.ClearCredentialStateException

Represents an error encountered during the CredentialManager#clearCredentialState(ClearCredentialStateRequest, operation.

Summary

Constants
static String

The error type value for when the given operation failed due to an unknown reason.

Public constructors

Constructs a ClearCredentialStateException.

Constructs a ClearCredentialStateException.

Constructs a ClearCredentialStateException.

Constructs a ClearCredentialStateException.

Public methods
open String

Returns the specific exception type.

Constants

TYPE_UNKNOWN

Added in API level 34
static val TYPE_UNKNOWN: String

The error type value for when the given operation failed due to an unknown reason.

Value: "android.credentials.ClearCredentialStateException.TYPE_UNKNOWN"

Public constructors

ClearCredentialStateException

Added in API level 34
ClearCredentialStateException(
    type: String,
    message: String?)

Constructs a ClearCredentialStateException.

Parameters
type String: This value cannot be null.
message String?: This value may be null.
Exceptions
java.lang.IllegalArgumentException If type is empty.

ClearCredentialStateException

Added in API level 34
ClearCredentialStateException(
    type: String,
    message: String?,
    cause: Throwable?)

Constructs a ClearCredentialStateException.

Parameters
type String: This value cannot be null.
message String?: This value may be null.
cause Throwable?: This value may be null.
Exceptions
java.lang.IllegalArgumentException If type is empty.

ClearCredentialStateException

Added in API level 34
ClearCredentialStateException(
    type: String,
    cause: Throwable?)

Constructs a ClearCredentialStateException.

Parameters
type String: This value cannot be null.
cause Throwable?: This value may be null.
Exceptions
java.lang.IllegalArgumentException If type is empty.

ClearCredentialStateException

Added in API level 34
ClearCredentialStateException(type: String)

Constructs a ClearCredentialStateException.

Parameters
type String: This value cannot be null.
Exceptions
java.lang.IllegalArgumentException If type is empty.

Public methods

getType

Added in API level 34
open fun getType(): String

Returns the specific exception type.

Return
String This value cannot be null.