|
BeanIO 1.2.3 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.beanio.BeanReaderErrorHandlerSupport
public class BeanReaderErrorHandlerSupport
Provides support for BeanReaderErrorHandler implementations. The handleError method delegates to other methods that can be overridden to handle specific error types. If a method is not overridden for a specific error type, the method will simply rethrow the exception by default.
| Constructor Summary | |
|---|---|
BeanReaderErrorHandlerSupport()
Constructs a new BeanReaderErrorHandlerSupport. |
|
| Method Summary | |
|---|---|
void |
fatalError(BeanReaderException ex)
Handles errors not handled by any other method. |
void |
handleError(BeanReaderException ex)
Delegates error handling based on the exception type. |
void |
invalidRecord(InvalidRecordException ex)
Handles InvalidRecordException errors. |
void |
malformedRecord(MalformedRecordException ex)
Handles MalformedRecordException errors. |
void |
unexpectedRecord(UnexpectedRecordException ex)
Handles UnexpectedRecordException errors. |
void |
unidentifiedRecord(UnidentifiedRecordException ex)
Handles UnidentifiedRecordException errors. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BeanReaderErrorHandlerSupport()
| Method Detail |
|---|
public final void handleError(BeanReaderException ex)
throws Exception
handleError in interface BeanReaderErrorHandlerex - the BeanReaderException to handle
Exception - if the BeanReaderException is rethrown or this error
handler throws a new Exception
public void invalidRecord(InvalidRecordException ex)
throws Exception
ex - the InvalidRecordException to handle
Exception - if the exception is not handled
public void unexpectedRecord(UnexpectedRecordException ex)
throws Exception
ex - the UnexpectedRecordException to handle
Exception - if the exception is not handled
public void unidentifiedRecord(UnidentifiedRecordException ex)
throws Exception
ex - the UnidentifiedRecordException to handle
Exception - if the exception is not handled
public void malformedRecord(MalformedRecordException ex)
throws Exception
ex - the MalformedRecordException to handle
Exception - if the exception is not handled
public void fatalError(BeanReaderException ex)
throws Exception
ex - the BeanReaderException to handle
Exception - if the exception is not handled
|
BeanIO 1.2.3 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||