public class DefaultExceptionStrategy extends AbstractExceptionListener
DefaultExceptionStrategy provides a default exception handling
strategy.commitTxFilter, enableNotifications, endpoints, initialised, logger, muleContext, rollbackTxFilterPHASE_NAMEPHASE_NAME| Constructor and Description |
|---|
DefaultExceptionStrategy() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
defaultHandler(Throwable t) |
void |
handleLifecycleException(Object component,
Throwable t)
DefaultLifecyclePhase exceptions are thrown when an error occurs during an object's
lifecycle call such as start, stop or initialise.
|
void |
handleMessagingException(MuleMessage message,
Throwable t)
A messaging exception is thrown when an excpetion occurs during normal message
processing.
|
void |
handleRoutingException(MuleMessage message,
ImmutableEndpoint endpoint,
Throwable t)
A routing exception is thrown when an excpetion occurs during normal message
processing A
RoutingException holds a reference to the current
message and te endpoint being routing to or from when the error occurred. |
void |
handleStandardException(Throwable t)
A handler for all other exceptions
|
protected MuleMessage |
messageFromContextIfAvailable(MuleMessage message) |
addEndpoint, closeStream, dispose, doInitialise, exceptionThrown, fireNotification, getCommitTxFilter, getEndpoints, getEndpoints, getErrorMessagePayload, getExceptionType, getRollbackTxFilter, handleTransaction, initialise, isEnableNotifications, isInitialised, logException, logFatal, removeEndpoint, rollbackTransaction, routeException, setCommitTxFilter, setEnableNotifications, setEndpoints, setMuleContext, setRollbackTxFilterpublic void handleMessagingException(MuleMessage message, Throwable t)
AbstractExceptionListenerMessagingException holds a reference to the
current message that is passed into this methodhandleMessagingException in class AbstractExceptionListenermessage - the current message being processedt - the top level exception thrown. This may be a Messaging exception or
some wrapper exceptionMessagingExceptionpublic void handleRoutingException(MuleMessage message, ImmutableEndpoint endpoint, Throwable t)
AbstractExceptionListenerRoutingException holds a reference to the current
message and te endpoint being routing to or from when the error occurred. Both
are passed into this methodhandleRoutingException in class AbstractExceptionListenermessage - the current message being processedendpoint - the endpoint being dispatched to or received from when the
error occurredt - the top level exception thrown. This may be a Messaging exception or
some wrapper exceptionRoutingExceptionpublic void handleLifecycleException(Object component, Throwable t)
AbstractExceptionListenerhandleLifecycleException in class AbstractExceptionListenert - the top level exception thrown. This may or may not be the
LifecycleException but a lifecycle exception will be
present in the exception stack.LifecycleExceptionpublic void handleStandardException(Throwable t)
AbstractExceptionListenerhandleStandardException in class AbstractExceptionListenert - the top level exception thrownprotected void defaultHandler(Throwable t)
protected MuleMessage messageFromContextIfAvailable(MuleMessage message)
Copyright © 2003-2012 MuleSource, Inc.. All Rights Reserved.