Code example for ClientProtocolException

Methods: printStackTrace, toString

0
			HttpResponse response = mHttpClient.execute(httpPost);
			String jsString = getResponseContent(response.getEntity());
			return new JSONObject(jsString);
 
		} catch (ClientProtocolException e) {
			Log.e(TAG, e.toString());
			e.printStackTrace();
			throw new NetworkFailureException("postRequest failed"); 
		} catch (IOException e) {
			Log.e(TAG, e.toString());
			e.printStackTrace();
			throw new NetworkFailureException("postRequest failed"); 
		} catch (JSONException e) {
			Log.e(TAG, e.toString());
			e.printStackTrace();
			throw new ActionFailureException( 
					"unable to convert response content to jsonobject"); 
		} catch (Exception e) {
			Log.e(TAG, e.toString());
			e.printStackTrace();
			throw new ActionFailureException(