public class DefaultServiceExceptionStrategy extends DefaultExceptionStrategy
DefaultServiceExceptionStrategy
is the default exception handler
for components. The handler logs errors and will forward the message and exception
to an exception endpointUri if one is set on this Exception strategycommitTxFilter, enableNotifications, endpoints, initialised, logger, muleContext, rollbackTxFilter
PHASE_NAME
PHASE_NAME
Constructor and Description |
---|
DefaultServiceExceptionStrategy() |
Modifier and Type | Method and Description |
---|---|
protected void |
defaultHandler(Throwable t) |
protected ServiceStatistics |
getServiceStatistics() |
protected void |
logFatal(MuleMessage message,
Throwable t)
Logs a fatal error message to the logging system.
|
protected void |
routeException(MuleMessage message,
ImmutableEndpoint failedEndpoint,
Throwable t)
Routes the current exception to an error endpoint such as a Dead Letter Queue
(jms) This method is only invoked if there is a MuleMessage available to
dispatch.
|
handleLifecycleException, handleMessagingException, handleRoutingException, handleStandardException, messageFromContextIfAvailable
addEndpoint, closeStream, dispose, doInitialise, exceptionThrown, fireNotification, getCommitTxFilter, getEndpoints, getEndpoints, getErrorMessagePayload, getExceptionType, getRollbackTxFilter, handleTransaction, initialise, isEnableNotifications, isInitialised, logException, removeEndpoint, rollbackTransaction, setCommitTxFilter, setEnableNotifications, setEndpoints, setMuleContext, setRollbackTxFilter
protected void defaultHandler(Throwable t)
defaultHandler
in class DefaultExceptionStrategy
protected void logFatal(MuleMessage message, Throwable t)
AbstractExceptionListener
logFatal
in class AbstractExceptionListener
message
- The MuleMessage currently being processedt
- the fatal exception to logprotected void routeException(MuleMessage message, ImmutableEndpoint failedEndpoint, Throwable t)
AbstractExceptionListener
ExceptionMessage
which contains the exception thrown the
MuleMessage and any context information.routeException
in class AbstractExceptionListener
message
- the MuleMessage being processed when the exception occurredfailedEndpoint
- optional; the endpoint being dispatched or received on
when the error occurred. This is NOT the endpoint that the message
will be disptched on and is only supplied to this method for
logging purposest
- the exception thrown. This will be sent with the ExceptionMessageExceptionMessage
protected ServiceStatistics getServiceStatistics()
Copyright © 2003–2013 MuleSource, Inc.. All rights reserved.