Or IllegalStateExecption? Gary
On Oct 25, 2016 2:31 AM, "Benedikt Ritter" <brit...@apache.org> wrote: > Hi, > > in our iterator implementation returned by CSVParser.iterator() we wrap > IOExceptions into RuntimeExceptions because we cannot throw IOException > from the iterator methods. For this reason, user code has to catch > RuntimeException in order to recover from parsing failures. > I was thinking whether it would be better to define a custom > RuntimeException, say CSVParsingException extends RuntimeException so user > code can only react to this kind of failures. > > WDYT? > > Benedikt >