Package org.beanio
Interface BeanReaderErrorHandler
-
- All Known Implementing Classes:
BeanReaderErrorHandlerSupport
public interface BeanReaderErrorHandler
A callback interface for handling exceptions thrown by aBeanReader
. When set on aBeanReader
, theBeanReader
will delegate all exception handling to this class. When an error handler is not set on a reader, theBeanReader
'sread()
will simply throw the exception.- Since:
- 1.0
- See Also:
BeanReader
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
handleError(BeanReaderException ex)
Callback method for handling aBeanReaderException
when using aBeanReader
.
-
-
-
Method Detail
-
handleError
void handleError(BeanReaderException ex) throws java.lang.Exception
Callback method for handling aBeanReaderException
when using aBeanReader
.- Parameters:
ex
- theBeanReaderException
to handle- Throws:
java.lang.Exception
- if theBeanReaderException
is rethrown or the error handler throws a new Exception
-
-