public class BeanIOErrorHandler
extends org.beanio.BeanReaderErrorHandlerSupport
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 and Description |
---|
BeanIOErrorHandler() |
Modifier and Type | Method and Description |
---|---|
BeanIOConfiguration |
getConfiguration()
The configuration
|
org.apache.camel.Exchange |
getExchange()
The current exchange
|
void |
handleErrorAndAddAsResult(Object result)
Sets a custom POJO as the result from handling an beanio error.
|
void |
init() |
void |
invalidRecord(org.beanio.InvalidRecordException ex) |
void |
setConfiguration(BeanIOConfiguration configuration) |
void |
setExchange(org.apache.camel.Exchange exchange) |
void |
unexpectedRecord(org.beanio.UnexpectedRecordException ex) |
void |
unidentifiedRecord(org.beanio.UnidentifiedRecordException ex) |
public void init()
public BeanIOConfiguration getConfiguration()
public void setConfiguration(BeanIOConfiguration configuration)
public org.apache.camel.Exchange getExchange()
public void setExchange(org.apache.camel.Exchange exchange)
public void handleErrorAndAddAsResult(Object result)
public void invalidRecord(org.beanio.InvalidRecordException ex) throws Exception
invalidRecord
in class org.beanio.BeanReaderErrorHandlerSupport
Exception
public void unexpectedRecord(org.beanio.UnexpectedRecordException ex) throws Exception
unexpectedRecord
in class org.beanio.BeanReaderErrorHandlerSupport
Exception
Apache Camel