Code example for ParseException

Methods: getMessage, printStackTrace

0
		} catch (JSONException e) {
			e.printStackTrace();
			mSessionListener
					.onException(new DrypersException(e.getMessage(), e));
		} catch (ParseException e) {
			e.printStackTrace();
			mSessionListener
					.onException(new DrypersException(e.getMessage(), e));
		} catch (IOException e) {
			e.printStackTrace();
			mSessionListener
					.onException(new DrypersException(e.getMessage(), e));
		} 
 
		return jsonArray;
	} 
 
	private JSONObject loadJsonObject(HttpRequestBase request) {
		String responseBody = "";
		JSONObject jsonObject = null;
 
		try { 
			HttpResponse response = SharedHttpClient.execute(request, SharedHttpContext);
			responseBody = EntityUtils.toString(response.getEntity());
			Log.d(this.getClass().toString(), "Server Object Response "
					+ responseBody);
			jsonObject = toJsonObject(responseBody);
		} catch (ParseException e) {
			mSessionListener
					.onException(new DrypersException(e.getMessage(), e));
		} catch (IOException e) {
			mSessionListener
					.onException(new DrypersException(e.getMessage(), e));
		} catch (DrypersException e) {
			mSessionListener.onException(e);