palindromicity / simple-syslog-5424

A java library for parsing valid RFC 5324 syslog
Apache License 2.0
5 stars 5 forks source link

When parsing multiple lines, we should provide an error callback #17

Closed ottobackwards closed 6 years ago

ottobackwards commented 6 years ago

Right now, if we are parsing with a reader, any line that throws will result in all the lines from then on failing.

We should only fail that line.

I think to do this we can add a new parseLines that takes a Throwable Consumer to the interface with a default implementation.