public static void throwProperException(ERROR_CODE errorCode, String captchaToken, String captchaUrl) throws AuthenticationException {
		switch (errorCode) {
			case AccountDeleted:
				throw new AccountDeletedException();
			case AccountDisabled:
				throw new AccountDisabledException();
			case BadAuthentication:
				throw new BadAuthenticationException();
			case CaptchaRequired:
				throw new CaptchaRequiredException(captchaToken, captchaUrl);
			case NotVerified:
				throw new NotVerifiedException();
			case ServiceDisabled:
				throw new ServiceDisabledException();
			case ServiceUnavailable:
				throw new ServiceUnavailableException();
			case TermsNotAgreed:
				throw new TermsNotAgreedException();
			default:
				throw new AuthenticationException(errorCode);
		}
	}