Class ExcelFileParseException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.batch.item.ItemReaderException
org.springframework.batch.item.ParseException
org.springframework.batch.extensions.excel.ExcelFileParseException
- All Implemented Interfaces:
Serializable
public class ExcelFileParseException
extends org.springframework.batch.item.ParseException
Exception thrown when parsing excel files. The name of the sheet, the row number on
that sheet and the name of the excel file can be passed in so that in exception
handling we can reuse it. This class only has simply dependencies to make it is generic
as possible.
- Since:
- 0.1.0
- Author:
- Marten Deinum
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionExcelFileParseException(String message, Throwable cause, String filename, String sheet, int rowNumber, String[] row) Construct anExcelFileParseException. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ExcelFileParseException
public ExcelFileParseException(String message, Throwable cause, String filename, String sheet, int rowNumber, String[] row) Construct anExcelFileParseException.- Parameters:
message- the messagecause- the root causefilename- the name of the excel filesheet- the name of the sheetrowNumber- the row number in the current sheetrow- the row data as text
-
-
Method Details
-
getFilename
-
getSheet
-
getRowNumber
public int getRowNumber() -
getRow
-