BeanIO 2.0.4

org.beanio
Class MalformedRecordException

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.MalformedRecordException
All Implemented Interfaces:
Serializable

public class MalformedRecordException
extends BeanReaderException

Exception thrown when a record does not adhere to the expected syntax of the stream format. Subsequent calls to BeanReader.read() are not likely to be successful.

Since:
1.0
Author:
Kevin Seim
See Also:
Serialized Form

Constructor Summary
MalformedRecordException(RecordContext context, String message)
          Constructs a new MalformedRecordException.
MalformedRecordException(RecordContext context, String message, Throwable cause)
          Constructs a new MalformedRecordException.
 
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

MalformedRecordException

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

Parameters:
context - the record context for the malformed record
message - the error message

MalformedRecordException

public MalformedRecordException(RecordContext context,
                                String message,
                                Throwable cause)
Constructs a new MalformedRecordException.

Parameters:
context - the record context for the malformed record
message - the error message
cause - the root cause

BeanIO 2.0.4

Copyright © 2010-2013 Kevin Seim