Package org.beanio

Class UnexpectedRecordException

  • All Implemented Interfaces:
    java.io.Serializable

    public class UnexpectedRecordException
    extends BeanReaderException
    Exception thrown when the record type of last record read by a BeanReader 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 Detail

      • UnexpectedRecordException

        public UnexpectedRecordException​(RecordContext context,
                                         java.lang.String message)
        Constructs a new UnexpectedRecordException.
        Parameters:
        context - the current context of the bean reader
        message - the error message