|
BeanIO 2.0.4 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.beanio.BeanIOException
org.beanio.BeanReaderException
public class BeanReaderException
Exception thrown by a BeanReader or Unmarshaller.
In most cases, a subclass of this exception is thrown. In a few (but rare) fatal cases, this exception may be thrown directly.
BeanReader,
Serialized Form| Constructor Summary | |
|---|---|
BeanReaderException(String message)
Constructs a new BeanReaderException. |
|
BeanReaderException(String message,
Throwable cause)
Constructs a new BeanReaderException. |
|
| Method Summary | |
|---|---|
RecordContext |
getContext()
Deprecated. use getRecordContext() |
RecordContext |
getRecordContext()
Returns the record context that caused the error. |
RecordContext |
getRecordContext(int index)
Returns the record context for a given record index. |
int |
getRecordCount()
Returns the number of unmarshalled records with context information available if getRecordContext(int) is called. |
protected void |
setRecordContext(RecordContext recordContext)
Sets the record context that caused the exception. |
protected void |
setRecordContext(RecordContext[] recordContext)
Sets the record context(s) that caused the exception. |
| 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 |
|---|
public BeanReaderException(String message)
message - the error message
public BeanReaderException(String message,
Throwable cause)
message - the error messagecause - the root cause| Method Detail |
|---|
public int getRecordCount()
getRecordContext(int) is called.
public RecordContext getContext()
getRecordContext()
RecordContextpublic RecordContext getRecordContext()
RecordContextgetRecordContext(int)
public RecordContext getRecordContext(int index)
throws IndexOutOfBoundsException
index - the record index
RecordContext
IndexOutOfBoundsException - if there is no record for the given indexgetRecordCount()protected void setRecordContext(RecordContext recordContext)
setRecordContext(RecordContext[]).
recordContext - the RecordContextprotected void setRecordContext(RecordContext[] recordContext)
recordContext - the array of RecordContext
|
BeanIO 2.0.4 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||