Code example for HttpResponseException

Methods: printStackTrace

0
                    ResponseHandler<String> responseHandler = new BasicResponseHandler();
                    response = client.execute(post, responseHandler);
                    json = new JSONObject(response);
 
                } catch (HttpResponseException e) {
                    e.printStackTrace();
                    Log.e("ClientProtocol", "" + e);
                    json.put("info", "There was an error creating the game. Please retry!");
                } catch (IOException e) {
                    e.printStackTrace();
                    Log.e("IO", "" + e);
                } 
            } catch (JSONException e) {
                e.printStackTrace();
                Log.e("JSON", "" + e);
            } 
 
            return json;
        } 
 
        @Override