FirebaseAuthException

public class FirebaseAuthException extends FirebaseException

Known direct subclasses
FirebaseAuthActionCodeException

Represents the exception which is a result of an expired or an invalid out of band code.

FirebaseAuthEmailException

Represents the exception which is a result of an attempt to send an email via Firebase Auth (e.g. a password reset email)

FirebaseAuthInvalidCredentialsException

Thrown when one or more of the credentials passed to a method fail to identify and/or authenticate the user subject of that operation.

FirebaseAuthInvalidUserException

Thrown when performing an operation on a FirebaseUser instance that is no longer valid.

FirebaseAuthMissingActivityForRecaptchaException

Thrown when the auth request attempted to fetch a reCAPTCHA token, but the activity is missing or null.

FirebaseAuthMultiFactorException

This exception is returned when a user that previously enrolled a second factor tries to sign in and passes the first factor successfully.

FirebaseAuthRecentLoginRequiredException

Thrown on security sensitive operations on a FirebaseUser instance that require the user to have signed in recently, when the requirement isn't met.

FirebaseAuthUserCollisionException

Thrown when an operation on a FirebaseUser instance couldn't be completed due to a conflict with another existing user.

FirebaseAuthWebException

Thrown when a web operation couldn't be completed.

Known indirect subclasses
FirebaseAuthWeakPasswordException

Thrown when using a weak password (less than 6 chars) to create a new account or to update an existing account's password.


Generic exception related to Firebase Authentication. Check the error code and message for more details.

Summary

Public fields

final String

Public constructors

FirebaseAuthException(
    @NonNull String errorCode,
    @NonNull String detailMessage
)

Public methods

@NonNull String

Returns an error code that may provide more information about the error.

Inherited methods

From java.lang.Throwable
synchronized final void
synchronized Throwable
synchronized Throwable
String
String
StackTraceElement[]
synchronized final Throwable[]
synchronized Throwable
void
void
setStackTrace(StackTraceElement[] p)
String

Public fields

errorCode

public final String errorCode

Public constructors

FirebaseAuthException

public FirebaseAuthException(
    @NonNull String errorCode,
    @NonNull String detailMessage
)

Public methods

getErrorCode

public @NonNull String getErrorCode()

Returns an error code that may provide more information about the error.