Package org.springframework.batch.item
Class UnexpectedInputException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.batch.item.ItemReaderException
org.springframework.batch.item.UnexpectedInputException
- All Implemented Interfaces:
Serializable
Used to signal an unexpected end of an input or message stream. This is an abnormal
condition, not just the end of the data - e.g. if a resource becomes unavailable, or a
stream becomes unreadable.
- Author:
- Dave Syer, Ben Hale, Mahmoud Ben Hassine
- See Also:
-
Constructor Summary
ConstructorDescriptionUnexpectedInputException
(String message) Create a newUnexpectedInputException
based on a message.UnexpectedInputException
(String msg, Throwable nested) Create a newUnexpectedInputException
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
-
UnexpectedInputException
Create a newUnexpectedInputException
based on a message.- Parameters:
message
- the message for this exception
-
UnexpectedInputException
Create a newUnexpectedInputException
based on a message and another exception.- Parameters:
msg
- the message for this exceptionnested
- the other exception
-