public class ErrorHandlingExecutionTemplate extends Object implements ExecutionTemplate<Event>
Processors that
should manage exceptions. Should be used when: An asynchronous MessageProcessor chain is being executed Because of an
<async> element Because of an asynchronous processing strategy A Flow is called using a <flow-ref> element.
Instance of ErrorHandlingExecutionTemplate will: Route any exception to exception strategy.
| Modifier and Type | Method and Description |
|---|---|
static ErrorHandlingExecutionTemplate |
createErrorHandlingExecutionTemplate(MuleContext muleContext,
FlowConstruct flowConstruct,
MessagingExceptionHandler messagingExceptionHandler)
Creates a ErrorHandlingExecutionTemplate to be used as the main enthat will route any MessagingException thrown to an
exception listener
|
Event |
execute(ExecutionCallback<Event> executionCallback) |
public static ErrorHandlingExecutionTemplate createErrorHandlingExecutionTemplate(MuleContext muleContext, FlowConstruct flowConstruct, MessagingExceptionHandler messagingExceptionHandler)
muleContext - MuleContext for this applicationflowConstruct - messagingExceptionHandler - exception listener to execute for any MessagingException exceptionpublic Event execute(ExecutionCallback<Event> executionCallback) throws Exception
execute in interface ExecutionTemplate<Event>ExceptionCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.