public class TestExceptionStrategy extends AbstractExceptionListener implements MessagingExceptionHandler, 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.Modifier and Type | Class and Description |
---|---|
static interface |
TestExceptionStrategy.ExceptionCallback |
Modifier and Type | Field and Description |
---|---|
protected Log |
logger
logger used by this class
|
commitTxFilter, enableNotifications, globalName, initialised, messageProcessors, NOT_SET, rollbackTxFilter
flowConstruct, messagingExceptionHandler, muleContext
PHASE_NAME
PHASE_NAME
PHASE_NAME
PHASE_NAME
PROPERTY_NAME
Constructor and Description |
---|
TestExceptionStrategy() |
Modifier and Type | Method and Description |
---|---|
String |
getTestProperty() |
void |
handleException(Exception exception) |
MuleEvent |
handleException(Exception exception,
MuleEvent event) |
MuleEvent |
handleException(Exception exception,
MuleEvent event,
RollbackSourceCallback rollbackMethod) |
void |
handleException(Exception exception,
RollbackSourceCallback rollbackMethod) |
protected void |
processUnhandled() |
void |
setExceptionCallback(TestExceptionStrategy.ExceptionCallback exceptionCallback) |
void |
setTestProperty(String testProperty) |
addEndpoint, closeStream, commit, doInitialise, fireNotification, fireNotification, getCommitTxFilter, getExceptionType, getGlobalName, getMessageProcessors, getOwnedMessageProcessors, getRollbackTxFilter, handleTransaction, initialise, isEnableNotifications, isInitialised, isRollback, logException, logFatal, removeMessageProcessor, rollback, rollback, rollbackTransaction, routeException, routeException, setCommitTxFilter, setEnableNotifications, setGlobalName, setMessageProcessors, setMessagingExceptionHandler, setRollbackTxFilter
addMessageProcessorPathElements, getAnnotation, getAnnotations, getOwnedObjects, setAnnotations
dispose, getFlowConstruct, getMessagingExceptionHandler, getMuleContext, setFlowConstruct, setMuleContext, start, stop
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
dispose
setMuleContext
setFlowConstruct
protected final Log logger
public String getTestProperty()
public void setTestProperty(String testProperty)
public MuleEvent handleException(Exception exception, MuleEvent event, RollbackSourceCallback rollbackMethod)
public MuleEvent handleException(Exception exception, MuleEvent event)
handleException
in interface MessagingExceptionHandler
public void handleException(Exception exception, RollbackSourceCallback rollbackMethod)
handleException
in interface SystemExceptionHandler
public void handleException(Exception exception)
handleException
in interface SystemExceptionHandler
public void setExceptionCallback(TestExceptionStrategy.ExceptionCallback exceptionCallback)
protected void processUnhandled()
Copyright © 2003–2015 MuleSoft, Inc.. All rights reserved.