org.mule.impl
Class DefaultExceptionStrategy

java.lang.Object
  extended byorg.mule.impl.AbstractExceptionListener
      extended byorg.mule.impl.DefaultExceptionStrategy
All Implemented Interfaces:
java.beans.ExceptionListener, Initialisable
Direct Known Subclasses:
DefaultComponentExceptionStrategy

public class DefaultExceptionStrategy
extends AbstractExceptionListener

DefaultExceptionStrategy Provides a default exception handling strategy. The class final thus to change exception handling behaviour the user must reimplemented the ExceptionListener Interface

Version:
$Revision: 1.8 $
Author:
Ross Mason

Field Summary
 
Fields inherited from class org.mule.impl.AbstractExceptionListener
endpoints, logger
 
Constructor Summary
DefaultExceptionStrategy()
           
 
Method Summary
protected  void defaultHandler(java.lang.Throwable t)
           
 void handleLifecycleException(java.lang.Object component, java.lang.Throwable t)
          Lifecycle exceptions are thrown when an error occurs during an object's lifecycle call such as start, stop or initialise.
 void handleMessagingException(UMOMessage message, java.lang.Throwable t)
          A messaging exception is thrown when an excpetion occurs during normal message processing A MessagingException holds a reference to the current message that is passed into this method
 void handleRoutingException(UMOMessage message, UMOEndpoint endpoint, java.lang.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(java.lang.Throwable t)
          A handler for all other exceptions
 
Methods inherited from class org.mule.impl.AbstractExceptionListener
addEndpoint, exceptionThrown, getEndpoint, getEndpoints, getErrorMessagePayload, getExceptionType, initialise, logException, logFatal, markTransactionForRollback, removeEndpoint, routeException, setEndpoints
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultExceptionStrategy

public DefaultExceptionStrategy()
Method Detail

handleMessagingException

public void handleMessagingException(UMOMessage message,
                                     java.lang.Throwable t)
Description copied from class: AbstractExceptionListener
A messaging exception is thrown when an excpetion occurs during normal message processing A MessagingException holds a reference to the current message that is passed into this method

Specified by:
handleMessagingException in class AbstractExceptionListener
Parameters:
message - the current message being processed
t - the top level exception thrown. This may be a Messaging exception or some wrapper exception
See Also:
MessagingException

handleRoutingException

public void handleRoutingException(UMOMessage message,
                                   UMOEndpoint endpoint,
                                   java.lang.Throwable t)
Description copied from class: AbstractExceptionListener
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. Both are passed into this method

Specified by:
handleRoutingException in class AbstractExceptionListener
Parameters:
message - the current message being processed
endpoint - the endpoint being dispatched to or received from when the error occurred
t - the top level exception thrown. This may be a Messaging exception or some wrapper exception
See Also:
RoutingException

handleLifecycleException

public void handleLifecycleException(java.lang.Object component,
                                     java.lang.Throwable t)
Description copied from class: AbstractExceptionListener
Lifecycle exceptions are thrown when an error occurs during an object's lifecycle call such as start, stop or initialise. The exception contains a reference to the object that failed which can be used for more informative logging.

Specified by:
handleLifecycleException in class AbstractExceptionListener
Parameters:
component - the object that failed during a lifecycle call
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.
See Also:
LifecycleException

handleStandardException

public void handleStandardException(java.lang.Throwable t)
Description copied from class: AbstractExceptionListener
A handler for all other exceptions

Specified by:
handleStandardException in class AbstractExceptionListener
Parameters:
t - the top level exception thrown

defaultHandler

protected void defaultHandler(java.lang.Throwable t)


Copyright © 2003-2005 SymphonySoft Limited. All Rights Reserved.