Code example for SocketTimeoutException

Methods: getMessage

0
				} else { 
					receiver.send(ServerMessages.STATUS_ERROR.getNumber(), b);
				} 
			} 
		} catch (SocketTimeoutException e) {
			Log.e(TAG, e.getMessage());
			receiver.send(ServerMessages.STATUS_CONNECTION_ERROR.getNumber(), b);
		} catch (Exception e) {
			Log.e(TAG, e.getMessage());
			receiver.send(ServerMessages.STATUS_ERROR.getNumber(), b);
		} 
	} 
 
	private boolean doLogin(ResultReceiver r, Bundle b, String userName,String password) throws IOException, ClientProtocolException {
		 URLGenerator security = new URLGenerator("Security");
		 security.addParameter("method", "SignIn");
		 security.addParameter("username", userName);
		 security.addParameter("password", password); 
		 HttpResponse response = security.getServerResponse();
		try { 
			XMLParser xp = new XMLParser(response);