Class BeanIOErrorHandler
java.lang.Object
org.beanio.BeanReaderErrorHandlerSupport
org.apache.camel.dataformat.beanio.BeanIOErrorHandler
- All Implemented Interfaces:
org.beanio.BeanReaderErrorHandler
public class BeanIOErrorHandler
extends org.beanio.BeanReaderErrorHandlerSupport
A
BeanReaderErrorHandler to handle errors during parsing. This error handler is prototype scoped and provides
access to the current Exchange. You can perform any custom initialization logic in the init()
method.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe configurationorg.apache.camel.ExchangeThe current exchangevoidhandleErrorAndAddAsResult(Object result) Sets a custom POJO as the result from handling an beanio error.voidinit()voidinvalidRecord(org.beanio.InvalidRecordException ex) voidsetConfiguration(BeanIOConfiguration configuration) voidsetExchange(org.apache.camel.Exchange exchange) voidunexpectedRecord(org.beanio.UnexpectedRecordException ex) voidunidentifiedRecord(org.beanio.UnidentifiedRecordException ex) Methods inherited from class org.beanio.BeanReaderErrorHandlerSupport
fatalError, handleError, malformedRecord
-
Constructor Details
-
BeanIOErrorHandler
public BeanIOErrorHandler()
-
-
Method Details
-
init
public void init() -
getConfiguration
The configuration -
setConfiguration
-
getExchange
public org.apache.camel.Exchange getExchange()The current exchange -
setExchange
public void setExchange(org.apache.camel.Exchange exchange) -
handleErrorAndAddAsResult
Sets a custom POJO as the result from handling an beanio error. -
invalidRecord
- Overrides:
invalidRecordin classorg.beanio.BeanReaderErrorHandlerSupport- Throws:
Exception
-
unexpectedRecord
- Overrides:
unexpectedRecordin classorg.beanio.BeanReaderErrorHandlerSupport- Throws:
Exception
-
unidentifiedRecord
- Overrides:
unidentifiedRecordin classorg.beanio.BeanReaderErrorHandlerSupport- Throws:
Exception
-