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, rollbackTxFilterPHASE_NAMEPHASE_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, messageFromContextIfAvailableaddEndpoint, closeStream, dispose, doInitialise, exceptionThrown, fireNotification, getCommitTxFilter, getEndpoints, getEndpoints, getErrorMessagePayload, getExceptionType, getRollbackTxFilter, handleTransaction, initialise, isEnableNotifications, isInitialised, logException, removeEndpoint, rollbackTransaction, setCommitTxFilter, setEnableNotifications, setEndpoints, setMuleContext, setRollbackTxFilterprotected void defaultHandler(Throwable t)
defaultHandler in class DefaultExceptionStrategyprotected void logFatal(MuleMessage message, Throwable t)
AbstractExceptionListenerlogFatal in class AbstractExceptionListenermessage - The MuleMessage currently being processedt - the fatal exception to logprotected void routeException(MuleMessage message, ImmutableEndpoint failedEndpoint, Throwable t)
AbstractExceptionListenerExceptionMessage which contains the exception thrown the
MuleMessage and any context information.routeException in class AbstractExceptionListenermessage - 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 ExceptionMessageExceptionMessageprotected ServiceStatistics getServiceStatistics()
Copyright © 2003-2012 MuleSource, Inc.. All Rights Reserved.