org.mule.api.exception
Interface MessagingExceptionHandler

All Superinterfaces:
ExceptionHandler
All Known Implementing Classes:
AbstractMessagingExceptionStrategy, DefaultMessagingExceptionStrategy

public interface MessagingExceptionHandler
extends ExceptionHandler

Take some action when a messaging exception has occurred (i.e., there was a message in play when the exception occurred).


Method Summary
 MuleEvent handleException(Exception exception, MuleEvent event)
          Take some action when a messaging exception has occurred (i.e., there was a message in play when the exception occurred).
 MuleEvent handleException(Exception exception, MuleEvent event, RollbackSourceCallback rollbackMethod)
          Take some action when a messaging exception has occurred (i.e., there was a message in play when the exception occurred).
 

Method Detail

handleException

MuleEvent handleException(Exception exception,
                          MuleEvent event,
                          RollbackSourceCallback rollbackMethod)
Take some action when a messaging exception has occurred (i.e., there was a message in play when the exception occurred).

Parameters:
exception - which occurred
event - which was being processed when the exception occurred
rollbackMethod - will be called if transactions are not used in order to achieve atomic message delivery
Returns:
new event to route on to the rest of the flow, generally with ExceptionPayload set on the message

handleException

MuleEvent handleException(Exception exception,
                          MuleEvent event)
Take some action when a messaging exception has occurred (i.e., there was a message in play when the exception occurred).

Parameters:
exception - which occurred
event - which was being processed when the exception occurred
Returns:
new event to route on to the rest of the flow, generally with ExceptionPayload set on the message


Copyright © 2003-2011 MuleSoft, Inc.. All Rights Reserved.