BeanIO 1.2.3

org.beanio
Class BeanReaderException

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
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
BeanReaderIOException, InvalidRecordException, MalformedRecordException, UnexpectedRecordException, UnidentifiedRecordException

public abstract class BeanReaderException
extends BeanIOException

A subclass of BeanReaderException is thrown for any exception that occurs while using a BeanReader to read from an input stream.

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

Constructor Summary
BeanReaderException(BeanReaderContext context, String message)
          Constructs a new BeanReaderException.
BeanReaderException(BeanReaderContext context, String message, Throwable cause)
          Constructs a new BeanReaderException.
 
Method Summary
 BeanReaderContext getContext()
          Returns the current state of the bean reader.
 
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

BeanReaderException

public BeanReaderException(BeanReaderContext context,
                           String message)
Constructs a new BeanReaderException.

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

BeanReaderException

public BeanReaderException(BeanReaderContext context,
                           String message,
                           Throwable cause)
Constructs a new BeanReaderException.

Parameters:
context - the current context of the bean reader
message - the error message
cause - the root cause
Method Detail

getContext

public BeanReaderContext getContext()
Returns the current state of the bean reader.

Returns:
bean reader context

BeanIO 1.2.3

Copyright © 2010-2012 Kevin Seim