Code example for ClientProtocolException

Methods: e, getMessage

0
            catch (JSONException e) {
                Log.e("MOBDEALS", "There was an error parsing the JSON", e);
                _alert("Couldn't load offer JSON: " + e.getMessage());
            } 
            catch (ClientProtocolException e) {
            	Log.e("MOBDEALS", "There was a protocol based error", e);
                _alert("Couldn't load offer because of a protocol problem: " + e.getMessage());
            } 
            catch (IOException e) {
            	Log.e("MOBDEALS", "There was an IO Stream related error", e);
                _alert("Couldn't load offer because of an IO Stream error: " + e.getMessage());
            } 
            catch(Exception e) {
                _alert("Couldn't load offer for an unkown reason: " + e.getMessage());
            } 
            return null; 
        } 
 
        protected void onProgressUpdate(Integer... progress) {
            // setProgressPercent(progress[0]); 
        }