@Deprecated
	String getLoginErrorMessage(String loginResult) {
		switch (loginResult) {
		case ApiConnection.LOGIN_WRONG_PASS:
			return loginResult + ": Wrong Password.";
		case ApiConnection.LOGIN_WRONG_PLUGIN_PASS:
			return loginResult
					+ ": Wrong Password. An authentication plugin rejected the password.";
		case ApiConnection.LOGIN_NOT_EXISTS:
			return loginResult + ": Username does not exist.";
		case ApiConnection.LOGIN_BLOCKED:
			return loginResult + ": User is blocked.";
		case ApiConnection.LOGIN_EMPTY_PASS:
			return loginResult + ": Password is empty.";
		case ApiConnection.LOGIN_NO_NAME:
			return loginResult + ": No user name given.";
		case ApiConnection.LOGIN_CREATE_BLOCKED:
			return loginResult
					+ ": The wiki tried to automatically create a new account for you, "
					+ "but your IP address has been blocked from account creation.";
		case ApiConnection.LOGIN_ILLEGAL:
			return loginResult + ": Username is illegal.";
		case ApiConnection.LOGIN_THROTTLED:
			return loginResult + ": Too many login attempts in a short time.";
		case ApiConnection.LOGIN_WRONG_TOKEN:
			return loginResult + ": Token is wrong.";
		case ApiConnection.LOGIN_NEEDTOKEN:
			return loginResult + ": Token or session ID is missing.";
		default:
			return "Login Error: " + loginResult;
		}
	}
@ Deprecated String getLoginErrorMessage ( String loginResult ) { switch ( loginResult ) { case ApiConnection . LOGIN_WRONG_PASS : return loginResult + ": Wrong Password." ; case ApiConnection . LOGIN_WRONG_PLUGIN_PASS : return loginResult + ": Wrong Password. An authentication plugin rejected the password." ; case ApiConnection . LOGIN_NOT_EXISTS : return loginResult + ": Username does not exist." ; case ApiConnection . LOGIN_BLOCKED : return loginResult + ": User is blocked." ; case ApiConnection . LOGIN_EMPTY_PASS : return loginResult + ": Password is empty." ; case ApiConnection . LOGIN_NO_NAME : return loginResult + ": No user name given." ; case ApiConnection . LOGIN_CREATE_BLOCKED : return loginResult + ": The wiki tried to automatically create a new account for you, " + "but your IP address has been blocked from account creation." ; case ApiConnection . LOGIN_ILLEGAL : return loginResult + ": Username is illegal." ; case ApiConnection . LOGIN_THROTTLED : return loginResult + ": Too many login attempts in a short time." ; case ApiConnection . LOGIN_WRONG_TOKEN : return loginResult + ": Token is wrong." ; case ApiConnection . LOGIN_NEEDTOKEN : return loginResult + ": Token or session ID is missing." ; default : return "Login Error: " + loginResult ; } }
Returns a user-readable message for a given API response.

@deprecated to be migrated to {@class PasswordApiConnection}
@param loginResult
a API login request result string other than
{@link #LOGIN_RESULT_SUCCESS}
@return error message