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 Details

    • ExcelFileParseException

      public ExcelFileParseException(String message, Throwable cause, String filename, String sheet, int rowNumber, String[] row)
      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 Details

    • getFilename

      public String getFilename()
    • getSheet

      public String getSheet()
    • getRowNumber

      public int getRowNumber()
    • getRow

      public String[] getRow()