public class AddCellToColumnException 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 and Description |
---|
AddCellToColumnException(Exception e,
int columnIndex,
long rowNumber,
List<String> columnNames,
String[] line)
Creates a new instance of this Exception
|
Modifier and Type | Method and Description |
---|---|
void |
dumpRow(PrintStream out)
Dumps to a PrintStream the information relative to the row that caused the problem
|
int |
getColumnIndex()
Returns the index of the column that threw the Exception
|
String |
getColumnName()
Returns the name of the column that caused the Exception
|
List<String> |
getColumnNames()
Returns the column names array
|
long |
getRowNumber()
Returns the number of the row that caused the Exception to be thrown
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public AddCellToColumnException(Exception e, int columnIndex, long rowNumber, List<String> columnNames, String[] line)
e
- The Exceeption that caused adding to failcolumnIndex
- The index of the column that threw the ExceptionrowNumber
- The number of the row that caused the Exception to be throwncolumnNames
- The column names stored as an arrayline
- The original line that caused the Exceptionpublic int getColumnIndex()
public long getRowNumber()
public String getColumnName()
public void dumpRow(PrintStream out)
out
- The PrintStream to output toCopyright © 2020. All rights reserved.