Code example for JsonSyntaxException

Methods: getCause

0
		PlacesSearchResult places = null;
		try { 
			places = gson.fromJson(response, PlacesSearchResult.class);
		} catch (JsonSyntaxException ex) {
			Log.e(YelpService.class.getName(),
					ex.getCause() + " : " + ex.getLocalizedMessage());
		} 
		return places;
	} 
}