Code example for JsonSyntaxException

Methods: getMessage

		WidgetDefinition definition = null;
		try { 
			definition = this.gson.fromJson(source, WidgetDefinition.class);
		} catch (final JsonSyntaxException e) {
			return null; 
		/* initialize controls */ 
		L.debug("creating component: '{}'", componentName);
		return new Component(componentName, definition, parent, context, customCreators, types);
	//~ Inner Classes -------------------------------------------------------------------------------------------------- 
	private static final class ImmutableListDeserializer implements JsonDeserializer<ImmutableList<?>> {
		public ImmutableList<?> deserialize(final JsonElement json, final Type type,
Connect your IDE to all the code out there  Get Codota for Java