Package org.beanio
Class UnexpectedRecordException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.beanio.BeanIOException
-
- org.beanio.BeanReaderException
-
- org.beanio.UnexpectedRecordException
-
- All Implemented Interfaces:
java.io.Serializable
public class UnexpectedRecordException extends BeanReaderException
Exception thrown when the record type of last record read by aBeanReader
is out of order based on the expected order defined by the stream's mapping file. After this exception is thrown, further reads from the stream will likely result in further exceptions.- Since:
- 1.0
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UnexpectedRecordException(RecordContext context, java.lang.String message)
Constructs a newUnexpectedRecordException
.
-
Method Summary
-
Methods inherited from class org.beanio.BeanReaderException
getContext, getRecordContext, getRecordContext, getRecordCount, setRecordContext, setRecordContext
-
-
-
-
Constructor Detail
-
UnexpectedRecordException
public UnexpectedRecordException(RecordContext context, java.lang.String message)
Constructs a newUnexpectedRecordException
.- Parameters:
context
- the current context of the bean readermessage
- the error message
-
-