public class ErrorHandlingExecutionTemplate extends Object implements ExecutionTemplate<MuleEvent>
Modifier and Type | Method and Description |
---|---|
static ErrorHandlingExecutionTemplate |
createErrorHandlingExecutionTemplate(MuleContext muleContext,
MessagingExceptionHandler messagingExceptionHandler)
Creates a ErrorHandlingExecutionTemplate to be used as the main enthat will route any MessagingException thrown to an exception listener
|
MuleEvent |
execute(ExecutionCallback<MuleEvent> executionCallback) |
public static ErrorHandlingExecutionTemplate createErrorHandlingExecutionTemplate(MuleContext muleContext, MessagingExceptionHandler messagingExceptionHandler)
muleContext
- MuleContext for this applicationmessagingExceptionHandler
- exception listener to execute for any MessagingException exceptionpublic MuleEvent execute(ExecutionCallback<MuleEvent> executionCallback) throws Exception
execute
in interface ExecutionTemplate<MuleEvent>
Exception
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.