org.mule.exception
Class AbstractMessagingExceptionStrategy

java.lang.Object
  extended by org.mule.exception.AbstractExceptionListener
      extended by org.mule.exception.AbstractMessagingExceptionStrategy
All Implemented Interfaces:
MuleContextAware, MessagingExceptionHandler, Disposable, Initialisable
Direct Known Subclasses:
DefaultServiceExceptionStrategy, QuietExceptionStrategy, RouteableExceptionStrategy

public abstract class AbstractMessagingExceptionStrategy
extends AbstractExceptionListener
implements MessagingExceptionHandler

DefaultExceptionStrategy provides a default exception handling strategy.


Field Summary
 
Fields inherited from class org.mule.exception.AbstractExceptionListener
commitTxFilter, enableNotifications, initialised, logger, messageProcessors, muleContext, rollbackTxFilter
 
Fields inherited from interface org.mule.api.lifecycle.Initialisable
PHASE_NAME
 
Fields inherited from interface org.mule.api.lifecycle.Disposable
PHASE_NAME
 
Constructor Summary
AbstractMessagingExceptionStrategy()
           
 
Method Summary
protected  void defaultHandler(java.lang.Throwable t)
           
 MuleEvent handleException(java.lang.Exception e, MuleEvent event)
          Take some action when a messaging exception has occurred (i.e., there was a message in play when the exception occurred).
 void handleLifecycleException(java.lang.Object component, java.lang.Throwable t)
           
 void handleMessagingException(MuleMessage message, java.lang.Throwable t)
           
 void handleRoutingException(MuleMessage message, MessageProcessor target, java.lang.Throwable t)
           
 void handleStandardException(java.lang.Throwable t)
           
protected  MuleMessage messageFromContextIfAvailable(MuleMessage message)
           
 
Methods inherited from class org.mule.exception.AbstractExceptionListener
addEndpoint, closeStream, createOutboundRouter, dispose, doInitialise, fireNotification, getCommitTxFilter, getExceptionType, getMessageProcessors, getMessageProcessors, getRollbackTxFilter, handleTransaction, initialise, isEnableNotifications, isInitialised, logException, logFatal, removeMessageProcessor, rollbackTransaction, routeException, setCommitTxFilter, setEnableNotifications, setMessageProcessors, setMuleContext, setRollbackTxFilter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractMessagingExceptionStrategy

public AbstractMessagingExceptionStrategy()
Method Detail

handleException

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

Specified by:
handleException in interface MessagingExceptionHandler
Parameters:
e - 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

handleMessagingException

public void handleMessagingException(MuleMessage message,
                                     java.lang.Throwable t)

handleRoutingException

public void handleRoutingException(MuleMessage message,
                                   MessageProcessor target,
                                   java.lang.Throwable t)

handleLifecycleException

public void handleLifecycleException(java.lang.Object component,
                                     java.lang.Throwable t)

handleStandardException

public void handleStandardException(java.lang.Throwable t)

defaultHandler

protected void defaultHandler(java.lang.Throwable t)

messageFromContextIfAvailable

protected MuleMessage messageFromContextIfAvailable(MuleMessage message)


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