Code example for ConnectTimeoutException

Methods: printStackTrace

0
			try { 
				source = retrieveJson(url);
			} catch (ConnectTimeoutException e) {
				Log.i(TAG, "Connect Timeout Exception thrown");
				success = false;
				e.printStackTrace();
				return; 
			} 
		} 
		else 
			source = memCache;
		 
		 
		if(source != null) {
		    Gson gson = new Gson();
		    try { 
		    	Log.i(TAG, "Parsing JSON : " + source);
		    	response = gson.fromJson(source, JsonResponse.class);
		    	success = true;
		    	setResponseVariables(); 
		    	return;