public abstract class TemplateMessagingExceptionStrategy extends AbstractExceptionListener implements MessagingExceptionHandlerAcceptor
commitTxFilter, enableNotifications, globalName, initialised, logException, logger, messageProcessors, NOT_SET, rollbackTxFilter
flowConstruct, messagingExceptionHandler, muleContext
PHASE_NAME
PHASE_NAME
PHASE_NAME
PHASE_NAME
PROPERTY_NAME
Constructor and Description |
---|
TemplateMessagingExceptionStrategy() |
Modifier and Type | Method and Description |
---|---|
boolean |
accept(MuleEvent event) |
boolean |
acceptsAll() |
protected boolean |
acceptsEvent(MuleEvent event)
Determines if the exception strategy should process or not a message inside a choice exception strategy.
|
protected MuleEvent |
afterRouting(Exception exception,
MuleEvent event) |
protected MuleEvent |
beforeRouting(Exception exception,
MuleEvent event) |
protected void |
doInitialise(MuleContext muleContext) |
MuleEvent |
handleException(Exception exception,
MuleEvent event)
Take some action when a messaging exception has occurred (i.e., there was a message in play when the exception occurred).
|
protected void |
markExceptionAsHandled(Exception exception) |
protected void |
nullifyExceptionPayloadIfRequired(MuleEvent event) |
protected void |
processReplyTo(MuleEvent event,
Exception e) |
protected MuleEvent |
route(MuleEvent event,
Exception t) |
void |
setHandleException(boolean handleException) |
void |
setMessagingExceptionHandler(MessagingExceptionHandler messagingExceptionHandler) |
void |
setWhen(String when) |
addEndpoint, closeStream, commit, doLogException, fireNotification, fireNotification, getCommitTxFilter, getExceptionType, getGlobalName, getMessageProcessors, getOwnedMessageProcessors, getRollbackTxFilter, handleTransaction, initialise, isEnableNotifications, isInitialised, isLogException, isRollback, logException, logFatal, removeMessageProcessor, rollback, rollback, rollbackTransaction, routeException, routeException, setCommitTxFilter, setEnableNotifications, setGlobalName, setLogException, setMessageProcessors, 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
public final MuleEvent handleException(Exception exception, MuleEvent event)
MessagingExceptionHandler
handleException
in interface MessagingExceptionHandler
exception
- which occurredevent
- which was being processed when the exception occurredprotected void markExceptionAsHandled(Exception exception)
protected void nullifyExceptionPayloadIfRequired(MuleEvent event)
protected void doInitialise(MuleContext muleContext) throws InitialisationException
doInitialise
in class AbstractExceptionListener
InitialisationException
public void setWhen(String when)
public boolean accept(MuleEvent event)
accept
in interface Acceptor
event
- MuleEvent
to route through exception handlerMessagingExceptionHandler
should handler exception
false otherwiseprotected boolean acceptsEvent(MuleEvent event)
event
- The MuleEvent being processedpublic boolean acceptsAll()
acceptsAll
in interface Acceptor
public void setMessagingExceptionHandler(MessagingExceptionHandler messagingExceptionHandler)
setMessagingExceptionHandler
in interface MessagingExceptionHandlerAware
setMessagingExceptionHandler
in class AbstractExceptionListener
public void setHandleException(boolean handleException)
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.