Code example for JsonSyntaxException

0
    } catch (ParseException ignored) {
    } 
    try { 
      return iso8601Format.parse(json);
    } catch (ParseException e) {
      throw new JsonSyntaxException(json, e);
    } 
  } 
 
  @Override public synchronized void write(JsonWriter out, Date value) throws IOException {
    if (value == null) {
      out.nullValue();
      return; 
    } 
    String dateFormatAsString = enUsFormat.format(value);
    out.value(dateFormatAsString);
  } 
} 
Contextual code suggestions in your IDE  Get Codota for Java