org.springframework.batch.item.excel
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.item.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.5.0
- Author:
- Marten Deinum
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
ExcelFileParseException
public ExcelFileParseException(String message,
Throwable cause,
String filename,
String sheet,
int rowNumber,
String[] row)
- Construct an
ExcelFileParseException.
- 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
getFilename
public String getFilename()
getSheet
public String getSheet()
getRowNumber
public int getRowNumber()
getRow
public String[] getRow()
Copyright © 2017. All rights reserved.