Code example for ClientProtocolException

Methods: getMessage

0
		    		// Until we implement tendencies, don't write to the local file 
		    		addToLocalDatabase(br);
		    		 
		    		 
		    	} catch(ClientProtocolException cpe) {
		    		log(cpe.getMessage());
		    	} catch(IOException ioe) {
		    		log(ioe.getMessage());
		    	} 
	    	} else { 
	    		// Offline. Add to queue 
	    		try { 
	    			log("offline. adding to queue " + mReading + " of size " + submitList.size());
	    			submitList.add(br);
	    		} catch(Exception e) {
	    			log(e.getMessage());
	    		} 
	    	} 
 
			//sm = (SensorManager) getSystemService(Context.SENSOR_SERVICE); 
			//sm.unregisterListener(that);