Package com.firebase.ui.auth.util
Enum FirebaseAuthError
- java.lang.Object
-
- java.lang.Enum<FirebaseAuthError>
-
- com.firebase.ui.auth.util.FirebaseAuthError
-
- All Implemented Interfaces:
Serializable
,Comparable<FirebaseAuthError>
public enum FirebaseAuthError extends Enum<FirebaseAuthError>
List of all possible results ofFirebaseAuthException.getErrorCode()
and their meanings. This is a temporary band-aid until we have better documentation and exposure for these error codes in the real Firebase Auth SDK.
-
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FirebaseAuthError
fromException(com.google.firebase.auth.FirebaseAuthException ex)
Get anFirebaseAuthError
from an exception, returningERROR_UNKNOWN
as a default.String
getDescription()
static FirebaseAuthError
valueOf(String name)
Returns the enum constant of this type with the specified name.static FirebaseAuthError[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ERROR_INVALID_CUSTOM_TOKEN
public static final FirebaseAuthError ERROR_INVALID_CUSTOM_TOKEN
-
ERROR_CUSTOM_TOKEN_MISMATCH
public static final FirebaseAuthError ERROR_CUSTOM_TOKEN_MISMATCH
-
ERROR_INVALID_CREDENTIAL
public static final FirebaseAuthError ERROR_INVALID_CREDENTIAL
-
ERROR_INVALID_EMAIL
public static final FirebaseAuthError ERROR_INVALID_EMAIL
-
ERROR_WRONG_PASSWORD
public static final FirebaseAuthError ERROR_WRONG_PASSWORD
-
ERROR_USER_MISMATCH
public static final FirebaseAuthError ERROR_USER_MISMATCH
-
ERROR_REQUIRES_RECENT_LOGIN
public static final FirebaseAuthError ERROR_REQUIRES_RECENT_LOGIN
-
ERROR_ACCOUNT_EXISTS_WITH_DIFFERENT_CREDENTIAL
public static final FirebaseAuthError ERROR_ACCOUNT_EXISTS_WITH_DIFFERENT_CREDENTIAL
-
ERROR_EMAIL_ALREADY_IN_USE
public static final FirebaseAuthError ERROR_EMAIL_ALREADY_IN_USE
-
ERROR_CREDENTIAL_ALREADY_IN_USE
public static final FirebaseAuthError ERROR_CREDENTIAL_ALREADY_IN_USE
-
ERROR_USER_DISABLED
public static final FirebaseAuthError ERROR_USER_DISABLED
-
ERROR_USER_TOKEN_EXPIRED
public static final FirebaseAuthError ERROR_USER_TOKEN_EXPIRED
-
ERROR_USER_NOT_FOUND
public static final FirebaseAuthError ERROR_USER_NOT_FOUND
-
ERROR_INVALID_USER_TOKEN
public static final FirebaseAuthError ERROR_INVALID_USER_TOKEN
-
ERROR_OPERATION_NOT_ALLOWED
public static final FirebaseAuthError ERROR_OPERATION_NOT_ALLOWED
-
ERROR_TOO_MANY_REQUESTS
public static final FirebaseAuthError ERROR_TOO_MANY_REQUESTS
-
ERROR_WEAK_PASSWORD
public static final FirebaseAuthError ERROR_WEAK_PASSWORD
-
ERROR_EXPIRED_ACTION_CODE
public static final FirebaseAuthError ERROR_EXPIRED_ACTION_CODE
-
ERROR_INVALID_ACTION_CODE
public static final FirebaseAuthError ERROR_INVALID_ACTION_CODE
-
ERROR_INVALID_MESSAGE_PAYLOAD
public static final FirebaseAuthError ERROR_INVALID_MESSAGE_PAYLOAD
-
ERROR_INVALID_RECIPIENT_EMAIL
public static final FirebaseAuthError ERROR_INVALID_RECIPIENT_EMAIL
-
ERROR_INVALID_SENDER
public static final FirebaseAuthError ERROR_INVALID_SENDER
-
ERROR_MISSING_EMAIL
public static final FirebaseAuthError ERROR_MISSING_EMAIL
-
ERROR_MISSING_PASSWORD
public static final FirebaseAuthError ERROR_MISSING_PASSWORD
-
ERROR_MISSING_PHONE_NUMBER
public static final FirebaseAuthError ERROR_MISSING_PHONE_NUMBER
-
ERROR_INVALID_PHONE_NUMBER
public static final FirebaseAuthError ERROR_INVALID_PHONE_NUMBER
-
ERROR_MISSING_VERIFICATION_CODE
public static final FirebaseAuthError ERROR_MISSING_VERIFICATION_CODE
-
ERROR_INVALID_VERIFICATION_CODE
public static final FirebaseAuthError ERROR_INVALID_VERIFICATION_CODE
-
ERROR_MISSING_VERIFICATION_ID
public static final FirebaseAuthError ERROR_MISSING_VERIFICATION_ID
-
ERROR_INVALID_VERIFICATION_ID
public static final FirebaseAuthError ERROR_INVALID_VERIFICATION_ID
-
ERROR_RETRY_PHONE_AUTH
public static final FirebaseAuthError ERROR_RETRY_PHONE_AUTH
-
ERROR_SESSION_EXPIRED
public static final FirebaseAuthError ERROR_SESSION_EXPIRED
-
ERROR_QUOTA_EXCEEDED
public static final FirebaseAuthError ERROR_QUOTA_EXCEEDED
-
ERROR_APP_NOT_AUTHORIZED
public static final FirebaseAuthError ERROR_APP_NOT_AUTHORIZED
-
ERROR_API_NOT_AVAILABLE
public static final FirebaseAuthError ERROR_API_NOT_AVAILABLE
-
ERROR_WEB_CONTEXT_CANCELED
public static final FirebaseAuthError ERROR_WEB_CONTEXT_CANCELED
-
ERROR_UNKNOWN
public static final FirebaseAuthError ERROR_UNKNOWN
-
-
Method Detail
-
values
public static FirebaseAuthError[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (FirebaseAuthError c : FirebaseAuthError.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FirebaseAuthError valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
fromException
public static FirebaseAuthError fromException(com.google.firebase.auth.FirebaseAuthException ex)
Get anFirebaseAuthError
from an exception, returningERROR_UNKNOWN
as a default.
-
getDescription
public String getDescription()
-
-