Code example for ClientProtocolException

Methods: toString

0
			catch (UnsupportedEncodingException e) {
				errorMessage = e.toString();
			} 
			catch (ClientProtocolException e) {
				Log.d("ClientProtocolException", "ClientProtocolException "+e);
				errorMessage = e.toString();
			} 
			catch (IOException e) {
				errorMessage = e.toString();
			} 
			catch (Exception e) {
				errorMessage = e.toString();
			} 
			 
			if (errorMessage != null) {
				result = new HttpResult (false, errorMessage, -1);
			} 
			 
			return result;
		}