Code example for JSONException

Methods: getMessage, printStackTrace

0
    public void onComplete(String response, final Object state) {
        try { 
            JSONObject obj = Util.parseJson(response);
            onComplete(obj, state);
        } catch (JSONException e) {
            e.printStackTrace();
            Log.e("facebook-stream", "JSON Error:" + e.getMessage());
        } catch (FacebookError e) {
            Log.e("facebook-stream", "Facebook Error:" + e.getMessage());
        } 
 
    } 
 
    public abstract void onComplete(JSONObject obj, final Object state);
 
    public void onFacebookError(FacebookError e, final Object state) {
        Log.e("stream", "Facebook Error:" + e.getMessage());
    } 
 
    public void onFileNotFoundException(FileNotFoundException e,
                                        final Object state) {