public class ExceptionHandlingReplyToHandlerDecorator extends Object implements ReplyToHandler
ReplyToHandler implementation that uses a .MessagingExceptionHandler to handle errors before delegating to the delegate ReplyToHandler instance.
Invocations of processReplyTo(org.mule.api.MuleEvent, org.mule.api.MuleMessage, Object) are passed straight
through to the delegate ReplyToHandler where as invocations of
ReplyToHandler.processExceptionReplyTo(org.mule.api.MessagingException, Object) may result in a
delegation to either processReplyTo(org.mule.api.MuleEvent, org.mule.api.MuleMessage, Object) or
ReplyToHandler.processExceptionReplyTo(org.mule.api.MessagingException, Object) depending on the
result of MessagingException.handled() after the MessagingExceptionHandler has been invoked.| Constructor and Description |
|---|
ExceptionHandlingReplyToHandlerDecorator(ReplyToHandler replyToHandler,
MessagingExceptionHandler exceptionHandler) |
| Modifier and Type | Method and Description |
|---|---|
void |
processExceptionReplyTo(MessagingException exception,
Object replyTo)
Processes replyTo in the case an exception occurred.
|
void |
processReplyTo(MuleEvent event,
MuleMessage returnMessage,
Object replyTo) |
public ExceptionHandlingReplyToHandlerDecorator(ReplyToHandler replyToHandler, MessagingExceptionHandler exceptionHandler)
public void processReplyTo(MuleEvent event, MuleMessage returnMessage, Object replyTo) throws MuleException
processReplyTo in interface ReplyToHandlerMuleExceptionpublic void processExceptionReplyTo(MessagingException exception, Object replyTo)
ReplyToHandlerprocessExceptionReplyTo in interface ReplyToHandlerexception - the exception thrown by processingreplyTo - name of the channel that exception message should be sent if relevantCopyright © 2003–2015 MuleSoft, Inc.. All rights reserved.