org.mule.api.exception
Interface MessagingExceptionHandler

All Known Implementing Classes:
AbstractMessagingExceptionStrategy, CxfComponentExceptionStrategy, DefaultServiceExceptionStrategy, QuietExceptionStrategy, RouteableExceptionStrategy

public interface MessagingExceptionHandler

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


Method Summary
 WildcardFilter getCommitTxFilter()
          Returns the filter that given an exception class will determine if a transaction should be committed or not.
 WildcardFilter getRollbackTxFilter()
          Returns the filter that given an exception class will determine if a transaction should be rollbacked or not.
 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).
 

Method Detail

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

getCommitTxFilter

WildcardFilter getCommitTxFilter()
Returns the filter that given an exception class will determine if a transaction should be committed or not.

Returns:
the exception filter configured for commit of transactions or null if there is no filter.

getRollbackTxFilter

WildcardFilter getRollbackTxFilter()
Returns the filter that given an exception class will determine if a transaction should be rollbacked or not.

Returns:
the exception filter configured for rollback of transactions or null if there is no filter.


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