FirebaseAuthException

public classFirebaseAuthException extendsFirebaseException

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 aFirebaseUser 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 aFirebaseUser instance that require the user to have signed in recently, when the requirement isn't met.

FirebaseAuthUserCollisionException

Thrown when an operation on aFirebaseUser 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

finalString

Public constructors

FirebaseAuthException(
    @NonNullString errorCode,
    @NonNullString detailMessage
)

Public methods

@NonNullString

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

Inherited methods

Fromjava.lang.Throwable
synchronized final void
synchronizedThrowable
synchronizedThrowable
String
String
StackTraceElement[]
synchronized final Throwable[]
synchronizedThrowable
void
void
setStackTrace(StackTraceElement[] p)
String

Public fields

errorCode

public final String errorCode

Public constructors

FirebaseAuthException

public FirebaseAuthException(
    @NonNullString errorCode,
    @NonNullString detailMessage
)

Public methods

getErrorCode

public @NonNullString getErrorCode()

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

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-07-21 UTC.