Serializable
public class ColumnIndexOutOfBoundsException extends RuntimeException
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
Constructor | Description |
---|---|
ColumnIndexOutOfBoundsException(IndexOutOfBoundsException e,
long rowNumber,
String[] line) |
Modifier and Type | Method | Description |
---|---|---|
void |
dumpRow(PrintStream out) |
Dumps to a PrintStream the information relative to the row that caused the problem
|
String[] |
getLine() |
Returns the array of values in the row that caused the Exception as a comma-separated list
|
long |
getRowNumber() |
Returns the number of the row that caused the Exception to be thrown
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public ColumnIndexOutOfBoundsException(IndexOutOfBoundsException e, long rowNumber, String[] line)
public long getRowNumber()
public String[] getLine()
public void dumpRow(PrintStream out)
out
- The PrintStream to output toCopyright © 2022. All rights reserved.