public class DefaultExceptionStrategy extends AbstractExceptionListener
DefaultExceptionStrategy
provides a default exception handling
strategy.commitTxFilter, enableNotifications, endpoints, initialised, logger, muleContext, rollbackTxFilter
PHASE_NAME
PHASE_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, setRollbackTxFilter
public void handleMessagingException(MuleMessage message, Throwable t)
AbstractExceptionListener
MessagingException
holds a reference to the
current message that is passed into this methodhandleMessagingException
in class AbstractExceptionListener
message
- the current message being processedt
- the top level exception thrown. This may be a Messaging exception or
some wrapper exceptionMessagingException
public void handleRoutingException(MuleMessage message, ImmutableEndpoint endpoint, Throwable t)
AbstractExceptionListener
RoutingException
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 AbstractExceptionListener
message
- 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 exceptionRoutingException
public void handleLifecycleException(Object component, Throwable t)
AbstractExceptionListener
handleLifecycleException
in class AbstractExceptionListener
t
- the top level exception thrown. This may or may not be the
LifecycleException
but a lifecycle exception will be
present in the exception stack.LifecycleException
public void handleStandardException(Throwable t)
AbstractExceptionListener
handleStandardException
in class AbstractExceptionListener
t
- the top level exception thrownprotected void defaultHandler(Throwable t)
protected MuleMessage messageFromContextIfAvailable(MuleMessage message)
Copyright © 2003–2013 MuleSource, Inc.. All rights reserved.