Class RowError

All Implemented Interfaces:
CsvError

public class RowError extends AbstractCsvError
The Class RowError.
  • Constructor Details

    • RowError

      public RowError(String message, RowReport report, int lineNumber)
      Instantiates a new row error.
      Parameters:
      message - the message
      report - the report
      lineNumber - the line number
  • Method Details

    • getReport

      public RowReport getReport()
      Gets the report.
      Returns:
      the report
    • getPrintableLines

      public List<String> getPrintableLines()
      Description copied from interface: CsvError
      Returns all lines, first the message, then the content and focus line, if available. These lines are usable to print with a monospaced font, since the focus line will show in the line above where the error occurred. If lines are needed for the browser, use CsvError.getRowParts().
      Returns:
      all lines, in printable format. Will always contain at least one line.
    • getRowParts

      public List<RowPart> getRowParts()
      Description copied from interface: CsvError
      Gets the content line where the error occurred, if available. The line is split into RowPart entries. Every RowPart knows about itself when it must be highlighted. This method is useful for reporting on the error in another format, for example HTML or PDF, since you can control the highlighting.
      Returns:
      the content line split into RowPart entries. Will be an empty list if not available.
    • getLineNumber

      public int getLineNumber()
      Description copied from interface: CsvError
      Returns the line number where the error occurred, zero-based. Will be -1 if not applicable.
      Returns:
      line number where the error occurred