org.beanio
Class BeanReaderException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.beanio.BeanIOException
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
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
BeanReaderException
public BeanReaderException(BeanReaderContext context,
String message)
- Constructs a new BeanReaderException.
- Parameters:
context
- the current context of the bean readermessage
- the error message
BeanReaderException
public BeanReaderException(BeanReaderContext context,
String message,
Throwable cause)
- Constructs a new BeanReaderException.
- Parameters:
context
- the current context of the bean readermessage
- the error messagecause
- the root cause
getContext
public BeanReaderContext getContext()
- Returns the current state of the bean reader.
- Returns:
- bean reader context
Copyright © 2010-2012 Kevin Seim