GetCredentialException

public final class GetCredentialException extends Exception


Exception encountered during the get-credential operation.

Summary

Constants

static final @NonNull String

Unable to retrieve a valid, consented credential from the user.

static final @NonNull String

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

static final @NonNull String

The user has cancelled the operation.

Public constructors

Public methods

final @NonNull String

the type of the error

Constants

ERROR_TYPE_NO_CREDENTIAL

public static final @NonNull String ERROR_TYPE_NO_CREDENTIAL

Unable to retrieve a valid, consented credential from the user.

Note: this error may never be thrown for certain credential types to protect user privacy. For example, for digital credentials, all errors will be reported as ERROR_TYPE_USER_CANCELED in order not to reveal the existence of a credential to the caller.

ERROR_TYPE_UNKNOWN

public static final @NonNull String ERROR_TYPE_UNKNOWN

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

ERROR_TYPE_USER_CANCELED

public static final @NonNull String ERROR_TYPE_USER_CANCELED

The user has cancelled the operation.

Public constructors

GetCredentialException

public GetCredentialException(@NonNull String type, String message)
Parameters
@NonNull String type

the type of the error

String message

the message of the error

Public methods

getType

public final @NonNull String getType()

the type of the error