Open linusclindgren opened 1 year ago
If you pass an empty list into the "warnings" method of the chaining parser, it will add the parse warnings to the list.
List<List<ParseWarning>> warnings = new ArrayList<List<ParseWarning>>();
ICalendar ical = Biweekly.parse(new File("...")).warnings(warnings).first();
List<ParseWarning> warningsFromFirstICalThatWasParsed = warnings.get(0);
for (ParseWarning warning : warningsFromFirstICalThatWasParsed){
//...
}
I'd like the option to parse iCals strictly. If this is not the consensus of developers in the project, perhaps the warnings in the ChainingParser could be made public. This way at least it will be possible to see any warnings and throw an exception with the warnings.