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 org.slf4j.Logger |
logger
logger used by this class
|
commitTxFilter, enableNotifications, globalName, initialised, logException, messageProcessors, NOT_SET, rollbackTxFilterflowConstruct, messagingExceptionHandler, muleContext| Constructor and Description |
|---|
TestExceptionStrategy() |
| Modifier and Type | Method and Description |
|---|---|
String |
getTestProperty() |
void |
handleException(Exception exception) |
Event |
handleException(Exception exception,
Event event,
RollbackSourceCallback rollbackMethod) |
void |
handleException(Exception exception,
RollbackSourceCallback rollbackMethod) |
Event |
handleException(MessagingException exception,
Event event) |
protected void |
processUnhandled() |
void |
setExceptionCallback(TestExceptionStrategy.ExceptionCallback exceptionCallback) |
void |
setTestProperty(String testProperty) |
addEndpoint, buildRouter, closeStream, commit, doInitialise, doLogException, fireNotification, fireNotification, getCommitTxFilter, getExceptionType, getGlobalName, getMessageProcessors, getOwnedMessageProcessors, getRollbackTxFilter, initialise, isEnableNotifications, isInitialised, isLogException, isRollback, logException, logFatal, removeMessageProcessor, rollback, routeException, setCommitTxFilter, setEnableNotifications, setGlobalName, setLogException, setMessageProcessors, setMessagingExceptionHandler, setRollbackTxFiltergetOwnedObjectsdispose, getFlowConstruct, getMuleContext, setFlowConstruct, setMuleContext, start, stopgetAnnotation, getAnnotations, getLocation, setAnnotationsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitapplysetMuleContextsetFlowConstructpublic String getTestProperty()
public void setTestProperty(String testProperty)
public Event handleException(Exception exception, Event event, RollbackSourceCallback rollbackMethod)
public Event handleException(MessagingException exception, Event event)
handleException in interface MessagingExceptionHandlerpublic void handleException(Exception exception, RollbackSourceCallback rollbackMethod)
handleException in interface SystemExceptionHandlerpublic void handleException(Exception exception)
handleException in interface SystemExceptionHandlerpublic void setExceptionCallback(TestExceptionStrategy.ExceptionCallback exceptionCallback)
protected void processUnhandled()
Copyright © 2003–2017 MuleSoft, Inc.. All rights reserved.