org.springframework.batch.item.excel
Class ExcelFileParseException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.springframework.batch.item.ItemReaderException
                  extended by org.springframework.batch.item.ParseException
                      extended by 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

Constructor Summary
ExcelFileParseException(String message, Throwable cause, String filename, String sheet, int rowNumber, String[] row)
          Construct an ExcelFileParseException.
 
Method Summary
 String getFilename()
           
 String[] getRow()
           
 int getRowNumber()
           
 String getSheet()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ExcelFileParseException

public ExcelFileParseException(String message,
                               Throwable cause,
                               String filename,
                               String sheet,
                               int rowNumber,
                               String[] row)
Construct an ExcelFileParseException.

Parameters:
message - the message
cause - the root cause
filename - the name of the excel file
sheet - the name of the sheet
rowNumber - the row number in the current sheet
row - the row data as text
Method Detail

getFilename

public String getFilename()

getSheet

public String getSheet()

getRowNumber

public int getRowNumber()

getRow

public String[] getRow()


Copyright © 2017. All rights reserved.