Stay organized with collections Save and categorize content based on your preferences.

CreateCustomCredentialException

public final class CreateCustomCredentialException extends CreateCredentialException


Represents a custom error thrown during a create flow with CredentialManager.

If you get this custom exception, you should match its type against exception constants defined in any third-party sdk with which you used to make the androidx.credentials.CreateCredentialRequest, and then handle it according to the sdk recommendation.

Throws
kotlin.IllegalArgumentException kotlin.IllegalArgumentException

If type is empty

kotlin.NullPointerException kotlin.NullPointerException

If type is null

Summary

Public constructors

CreateCustomCredentialException(
    @NonNull String type,
    CharSequence errorMessage
)

Public methods

@NonNull String

a string that indicates the type of the credential exception

Public constructors

CreateCustomCredentialException

public CreateCustomCredentialException(
    @NonNull String type,
    CharSequence errorMessage
)

Public methods

getType

public @NonNull String getType()

a string that indicates the type of the credential exception