Package tech.tablesaw.io
Class ColumnIndexOutOfBoundsException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
tech.tablesaw.io.ColumnIndexOutOfBoundsException
- All Implemented Interfaces:
Serializable
This Exception wraps another Exception thrown while adding a cell to a column.
The methods of this exception allow the causing Exception, row number, column index, columnNames and line to be retrieved.
The dumpRow method allows the row in question to be printed to a a PrintStream such as System.out
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionColumnIndexOutOfBoundsException
(IndexOutOfBoundsException e, long rowNumber, String[] line) -
Method Summary
Modifier and TypeMethodDescriptionvoid
dumpRow
(PrintStream out) Dumps to a PrintStream the information relative to the row that caused the problemString[]
getLine()
Returns the array of values in the row that caused the Exception as a comma-separated listlong
Returns the number of the row that caused the Exception to be thrownMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ColumnIndexOutOfBoundsException
-
-
Method Details
-
getRowNumber
public long getRowNumber()Returns the number of the row that caused the Exception to be thrown -
getLine
Returns the array of values in the row that caused the Exception as a comma-separated list -
dumpRow
Dumps to a PrintStream the information relative to the row that caused the problem- Parameters:
out
- The PrintStream to output to
-