Class FlatFileFormatException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.batch.item.file.transform.FlatFileFormatException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
IncorrectLineLengthException
,IncorrectTokenCountException
Exception indicating that some type of error has occurred while attempting to parse a
line of input into tokens.
- Author:
- Lucas Ward, Michael Minella
- See Also:
-
Constructor Summary
ConstructorDescriptionFlatFileFormatException
(String message) Create a newFlatFileFormatException
based on a message.FlatFileFormatException
(String message, String input) Create a newFlatFileFormatException
based on a message.FlatFileFormatException
(String message, Throwable cause) Create a newFlatFileFormatException
based on a message and another exception. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
FlatFileFormatException
Create a newFlatFileFormatException
based on a message.- Parameters:
message
- the message for this exceptioninput
-String
containing the input for that caused this exception to be thrown.
-
FlatFileFormatException
Create a newFlatFileFormatException
based on a message.- Parameters:
message
- the message for this exception
-
FlatFileFormatException
Create a newFlatFileFormatException
based on a message and another exception.- Parameters:
message
- the message for this exceptioncause
- the other exception
-
-
Method Details
-
getInput
Retrieve the input that caused this exception.- Returns:
- String containing the input.
-