in auth/src/main/java/com/firebase/ui/auth/ErrorCodes.java [85:120]
public static String toFriendlyMessage(@Code int code) {
switch (code) {
case UNKNOWN_ERROR:
return "Unknown error";
case NO_NETWORK:
return "No internet connection";
case PLAY_SERVICES_UPDATE_CANCELLED:
return "Play Services update cancelled";
case DEVELOPER_ERROR:
return "Developer error";
case PROVIDER_ERROR:
return "Provider error";
case ANONYMOUS_UPGRADE_MERGE_CONFLICT:
return "User account merge conflict";
case EMAIL_MISMATCH_ERROR:
return "You are are attempting to sign in a different email than previously " +
"provided";
case INVALID_EMAIL_LINK_ERROR:
return "You are are attempting to sign in with an invalid email link";
case EMAIL_LINK_PROMPT_FOR_EMAIL_ERROR:
return "Please enter your email to continue signing in";
case EMAIL_LINK_WRONG_DEVICE_ERROR:
return "You must open the email link on the same device.";
case EMAIL_LINK_CROSS_DEVICE_LINKING_ERROR:
return "You must determine if you want to continue linking or complete the sign in";
case EMAIL_LINK_DIFFERENT_ANONYMOUS_USER_ERROR:
return "The session associated with this sign-in request has either expired or " +
"was cleared";
case ERROR_USER_DISABLED:
return "The user account has been disabled by an administrator.";
case ERROR_GENERIC_IDP_RECOVERABLE_ERROR:
return "Generic IDP recoverable error.";
default:
throw new IllegalArgumentException("Unknown code: " + code);
}
}