Search in sources :

Example 21 with RedeliveryErrorHandler

use of org.apache.camel.processor.RedeliveryErrorHandler in project camel by apache.

the class ManagedErrorHandler method setLogContinued.

public void setLogContinued(Boolean log) {
    if (!isSupportRedelivery()) {
        throw new IllegalArgumentException("This error handler does not support redelivery");
    }
    RedeliveryErrorHandler redelivery = (RedeliveryErrorHandler) errorHandler;
    redelivery.getRedeliveryPolicy().setLogContinued(log);
}
Also used : RedeliveryErrorHandler(org.apache.camel.processor.RedeliveryErrorHandler)

Aggregations

RedeliveryErrorHandler (org.apache.camel.processor.RedeliveryErrorHandler)21 OnExceptionDefinition (org.apache.camel.model.OnExceptionDefinition)1 ErrorHandlerSupport (org.apache.camel.processor.ErrorHandlerSupport)1