org.mule.exception
Class DefaultSystemExceptionStrategy

java.lang.Object
  extended by org.mule.processor.AbstractMessageProcessorOwner
      extended by org.mule.exception.AbstractExceptionListener
          extended by org.mule.exception.DefaultSystemExceptionStrategy
All Implemented Interfaces:
FlowConstructAware, MuleContextAware, SystemExceptionHandler, Disposable, Initialisable, Lifecycle, Startable, Stoppable

public class DefaultSystemExceptionStrategy
extends AbstractExceptionListener
implements SystemExceptionHandler

Log exception, fire a notification, and clean up transaction if any.


Field Summary
 
Fields inherited from class org.mule.exception.AbstractExceptionListener
commitTxFilter, enableNotifications, initialised, logger, messageProcessors, rollbackTxFilter
 
Fields inherited from class org.mule.processor.AbstractMessageProcessorOwner
flowConstruct, muleContext
 
Fields inherited from interface org.mule.api.lifecycle.Initialisable
PHASE_NAME
 
Fields inherited from interface org.mule.api.lifecycle.Startable
PHASE_NAME
 
Fields inherited from interface org.mule.api.lifecycle.Stoppable
PHASE_NAME
 
Fields inherited from interface org.mule.api.lifecycle.Disposable
PHASE_NAME
 
Constructor Summary
DefaultSystemExceptionStrategy()
          Deprecated. Use DefaultSystemExceptionStrategy(MuleContext muleContext) instead
DefaultSystemExceptionStrategy(MuleContext muleContext)
           
 
Method Summary
 void handleException(Exception e)
          Take some action when a system exception has occurred (i.e., there was no message in play when the exception occurred).
 
Methods inherited from class org.mule.exception.AbstractExceptionListener
addEndpoint, closeStream, createOutboundRouter, doInitialise, fireNotification, getCommitTxFilter, getExceptionType, getMessageProcessors, getMessageProcessors, getOwnedMessageProcessors, getRollbackTxFilter, handleTransaction, initialise, isEnableNotifications, isInitialised, logException, logFatal, removeMessageProcessor, rollbackTransaction, routeException, setCommitTxFilter, setEnableNotifications, setMessageProcessors, setRollbackTxFilter
 
Methods inherited from class org.mule.processor.AbstractMessageProcessorOwner
dispose, setFlowConstruct, setMuleContext, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultSystemExceptionStrategy

public DefaultSystemExceptionStrategy()
Deprecated. Use DefaultSystemExceptionStrategy(MuleContext muleContext) instead

For IoC only


DefaultSystemExceptionStrategy

public DefaultSystemExceptionStrategy(MuleContext muleContext)
Method Detail

handleException

public void handleException(Exception e)
Description copied from interface: SystemExceptionHandler
Take some action when a system exception has occurred (i.e., there was no message in play when the exception occurred).

Specified by:
handleException in interface SystemExceptionHandler
Parameters:
e - which occurred


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