BeanIO 2.0.4

org.beanio
Class UnexpectedRecordException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.beanio.BeanIOException
                  extended by org.beanio.BeanReaderException
                      extended by org.beanio.UnexpectedRecordException
All Implemented Interfaces:
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
Author:
Kevin Seim
See Also:
Serialized Form

Constructor Summary
UnexpectedRecordException(RecordContext context, String message)
          Constructs a new UnexpectedRecordException.
 
Method Summary
 
Methods inherited from class org.beanio.BeanReaderException
getContext, getRecordContext, getRecordContext, getRecordCount, setRecordContext, setRecordContext
 
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

UnexpectedRecordException

public UnexpectedRecordException(RecordContext context,
                                 String message)
Constructs a new UnexpectedRecordException.

Parameters:
context - the current context of the bean reader
message - the error message

BeanIO 2.0.4

Copyright © 2010-2013 Kevin Seim