Interface ClosableReportingIterator<T>

Type Parameters:
T - the type of elements returned by the iterator
All Superinterfaces:
AutoCloseable, ClosableIterator<T>, Iterator<T>
All Known Implementing Classes:
CSVReader

public interface ClosableReportingIterator<T> extends ClosableIterator<T>
Interface that extends the ClosableIterator providing a means to check if there is an error, log what it is, store the actual Exception, and skip over it to continue reading.
  • Method Details

    • hasRowError

      boolean hasRowError()
      Return true if an error was encountered while iterating over row.
    • getErrorMessage

      Return an informative message about the error encountered while iterating over row. Different from the Exception's message, used to store the row number, row string, etc.
    • getException

      Return the Exception encountered while iterating over row.