CreateCredentialException

class CreateCredentialException : Exception


Exception encountered during the create-credential operation.

Summary

Constants

const String

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

const String

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

const String

The user has cancelled the operation.

Public constructors

Public properties

String

the type of the error

Inherited properties

From kotlin.Throwable

Constants

ERROR_TYPE_NO_CREDENTIAL

const val ERROR_TYPE_NO_CREDENTIALString

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

const val ERROR_TYPE_UNKNOWNString

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

ERROR_TYPE_USER_CANCELED

const val ERROR_TYPE_USER_CANCELEDString

The user has cancelled the operation.

Public constructors

CreateCredentialException

CreateCredentialException(type: String, message: String?)
Parameters
type: String

the type of the error

message: String?

the message of the error

Public properties

type

val typeString

the type of the error