Summary: Ctors | Inherited Methods | [Expand All]
public final class

# FirebaseAuthUserCollisionException

extends FirebaseAuthException

java.lang.Object
↳ | java.lang.Throwable
| ↳ | java.lang.Exception
|  | ↳ | com.google.firebase.FirebaseException
|  |  | ↳ | com.google.firebase.auth.FirebaseAuthException
|  |  |  | ↳ | com.google.firebase.auth.FirebaseAuthUserCollisionException

## Class Overview

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

This could happen in the following cases:

- `ERROR_EMAIL_ALREADY_IN_USE` when trying to create a new account with `createUserWithEmailAndPassword(String, String)` or to change a user's email address, if the email is already in use by a different account
- `ERROR_ACCOUNT_EXISTS_WITH_DIFFERENT_CREDENTIAL` when calling `signInWithCredential(AuthCredential)` with a credential that asserts an email address in use by another account. This error will only be thrown if the "One account per email address" setting is enabled in the Firebase console (recommended).
- `ERROR_CREDENTIAL_ALREADY_IN_USE` when trying to link a user with an `AuthCredential` corresponding to another account already in use

Inspect the error code and message to find out the specific cause.

Resolve this exception by asking the user to sign in again with valid credentials.

## Summary

Public Constructors
| FirebaseAuthUserCollisionException(String code, String message)

[Expand] Inherited Methods
From class com.google.firebase.auth.FirebaseAuthException
String | getErrorCode() Returns an error code that may provide more information about the error.
From class java.lang.Throwable
final void | addSuppressed(Throwable arg0)
Throwable | fillInStackTrace()
Throwable | getCause()
String | getLocalizedMessage()
String | getMessage()
StackTraceElement[] | getStackTrace()
final Throwable[] | getSuppressed()
Throwable | initCause(Throwable arg0)
void | printStackTrace()
void | printStackTrace(PrintWriter arg0)
void | printStackTrace(PrintStream arg0)
void | setStackTrace(StackTraceElement[] arg0)
String | toString()
From class java.lang.Object
Object | clone()
boolean | equals(Object arg0)
void | finalize()
final Class<?> | getClass()
int | hashCode()
final void | notify()
final void | notifyAll()
String | toString()
final void | wait(long arg0, int arg1)
final void | wait(long arg0)
final void | wait()

## Public Constructors

#### public FirebaseAuthUserCollisionException (String code, String message)