ClearCredentialStateException


public class ClearCredentialStateException
extends Exception

java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ android.credentials.ClearCredentialStateException


Represents an error encountered during the CredentialManager#clearCredentialState(ClearCredentialStateRequest, CancellationSignal, Executor, OutcomeReceiver) operation.

Summary

Constants

String TYPE_UNKNOWN

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

Public constructors

ClearCredentialStateException(String type, String message)

Constructs a ClearCredentialStateException.

ClearCredentialStateException(String type, String message, Throwable cause)

Constructs a ClearCredentialStateException.

ClearCredentialStateException(String type, Throwable cause)

Constructs a ClearCredentialStateException.

ClearCredentialStateException(String type)

Constructs a ClearCredentialStateException.

Public methods

String getType()

Returns the specific exception type.

Inherited methods

Constants

TYPE_UNKNOWN

Added in API level 34
public static final String TYPE_UNKNOWN

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

Constant Value: "android.credentials.ClearCredentialStateException.TYPE_UNKNOWN"

Public constructors

ClearCredentialStateException

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

Constructs a ClearCredentialStateException.

Parameters
type String: This value cannot be null.

message String: This value may be null.

Throws
IllegalArgumentException If type is empty.

ClearCredentialStateException

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

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.

Throws
IllegalArgumentException If type is empty.

ClearCredentialStateException

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

Constructs a ClearCredentialStateException.

Parameters
type String: This value cannot be null.

cause Throwable: This value may be null.

Throws
IllegalArgumentException If type is empty.

ClearCredentialStateException

Added in API level 34
public ClearCredentialStateException (String type)

Constructs a ClearCredentialStateException.

Parameters
type String: This value cannot be null.

Throws
IllegalArgumentException If type is empty.

Public methods

getType

Added in API level 34
public String getType ()

Returns the specific exception type.

Returns
String This value cannot be null.