java.lang.Object
org.csveed.report.AbstractCsvError
org.csveed.report.RowError
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Returns the line number where the error occurred, zero-based.Returns all lines, first the message, then the content and focus line, if available.Gets the report.Gets the content line where the error occurred, if available.Methods inherited from class org.csveed.report.AbstractCsvError
getMessage, getMessageAsList
-
Constructor Details
-
RowError
-
-
Method Details
-
getReport
-
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, useCsvError.getRowParts()
.- Returns:
- all lines, in printable format. Will always contain at least one line.
-
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
-