org.mule.tck.testmodels.mule
Class TestExceptionStrategy
java.lang.Object
org.mule.processor.AbstractMessageProcessorOwner
org.mule.exception.AbstractExceptionListener
org.mule.exception.AbstractMessagingExceptionStrategy
org.mule.tck.testmodels.mule.TestExceptionStrategy
- All Implemented Interfaces:
- FlowConstructAware, MuleContextAware, MessagingExceptionHandler, SystemExceptionHandler, Disposable, Initialisable, Lifecycle, Startable, Stoppable
public class TestExceptionStrategy
- extends AbstractMessagingExceptionStrategy
- implements SystemExceptionHandler
TestExceptionStrategy
is used by the Mule test cases as a direct
replacement of the AbstractMessagingExceptionStrategy
.
This is used to test that overriding the default Exception strategy works.
Field Summary |
protected Log |
logger
logger used by this class |
Methods inherited from class org.mule.exception.AbstractExceptionListener |
addEndpoint, closeStream, doInitialise, fireNotification, getCommitTxFilter, getExceptionType, getMessageProcessors, getOwnedMessageProcessors, getRollbackTxFilter, handleTransaction, initialise, isEnableNotifications, isInitialised, isRollback, logException, logFatal, removeMessageProcessor, rollbackTransaction, routeException, setCommitTxFilter, setEnableNotifications, setMessageProcessors, setRollbackTxFilter |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
protected final Log logger
- logger used by this class
TestExceptionStrategy
public TestExceptionStrategy()
getTestProperty
public String getTestProperty()
setTestProperty
public void setTestProperty(String testProperty)
handleException
public MuleEvent handleException(Exception exception,
MuleEvent event)
- Specified by:
handleException
in interface MessagingExceptionHandler
- Overrides:
handleException
in class AbstractMessagingExceptionStrategy
handleException
public void handleException(Exception exception)
- Specified by:
handleException
in interface SystemExceptionHandler
setExceptionCallback
public void setExceptionCallback(TestExceptionStrategy.ExceptionCallback exceptionCallback)
processUnhandled
protected void processUnhandled()
Copyright © 2003-2014 MuleSoft, Inc.. All Rights Reserved.