Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a2228914 authored by Helen Qin's avatar Helen Qin
Browse files

Add error codes to CredentialManagerException.

Bug: 246564035
Test: Local Build & Deployment
Change-Id: Ib4817998135772c42c67d26638b669d2367da5a6
parent d0724a9f
Loading
Loading
Loading
Loading
+14 −0
Original line number Diff line number Diff line
@@ -23,6 +23,20 @@ public class CredentialManagerException extends Exception {
    /** Indicates that an unknown error was encountered. */
    public static final int ERROR_UNKNOWN = 0;

    /**
     * The given CredentialManager operation is cancelled by the user.
     *
     * @hide
     */
    public static final int ERROR_USER_CANCELLED = 1;

    /**
     * No appropriate provider is found to support the target credential type(s).
     *
     * @hide
     */
    public static final int ERROR_PROVIDER_NOT_FOUND = 2;

    public final int errorCode;

    public CredentialManagerException(int errorCode, @Nullable String message) {