org.springframework.batch.item.file
Class FlatFileParseException

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.file.FlatFileParseException
All Implemented Interfaces:
Serializable

public class FlatFileParseException
extends ParseException

Exception thrown when errors are encountered parsing flat files. The original input, typically a line, can be passed in, so that latter catches can write out the original input to a log, or an error table.

Author:
Lucas Ward, Ben Hale
See Also:
Serialized Form

Constructor Summary
FlatFileParseException(String message, String input)
           
FlatFileParseException(String message, String input, int lineNumber)
           
FlatFileParseException(String message, Throwable cause, String input, int lineNumber)
           
 
Method Summary
 String getInput()
           
 int getLineNumber()
           
 
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

FlatFileParseException

public FlatFileParseException(String message,
                              String input)

FlatFileParseException

public FlatFileParseException(String message,
                              String input,
                              int lineNumber)

FlatFileParseException

public FlatFileParseException(String message,
                              Throwable cause,
                              String input,
                              int lineNumber)
Method Detail

getInput

public String getInput()

getLineNumber

public int getLineNumber()


Copyright © 2009 SpringSource. All Rights Reserved.