Code example for JsonSyntaxException

Methods: getClassgetCausegetMessage

0
			try { 
				response = (T[]) gson.fromJson(reader, getMapperClass());
			} catch (JsonSyntaxException jse) {
				response = null;
 
				Log.e(TAG, "JSE : " + jse.getMessage());
				Log.e(TAG, "CAUSE : " + jse.getCause());
				Log.e(TAG, "CLASS : " + jse.getClass());
 
				// if(jse.getMessage().contains(cs)) 
 
			} 
 
			Log.d("TAG", "Response:  " + response);
		} 
		return response;
	} // end callWebService() 
 
	/** 
	 * @author Rishi K Gets the response in form of object of mapping class.