org.kuali.rice.ksb.messaging.exceptionhandling
Interface MessageExceptionHandler

All Known Implementing Classes:
DefaultMessageExceptionHandler, DocumentMessageExceptionHandler

public interface MessageExceptionHandler

A MessageExceptionHandler handles exception which arrise during processing of the message.

Author:
Kuali Rice Team (rice.collab@kuali.org)

Method Summary
 void handleException(Throwable throwable, PersistedMessage message, Object service)
           
 void handleExceptionLastDitchEffort(Throwable throwable, PersistedMessage message, Object service)
           
 boolean isInException(PersistedMessage message)
          Determines whether the message would go into Exception if submitted.
 

Method Detail

handleException

void handleException(Throwable throwable,
                     PersistedMessage message,
                     Object service)
                     throws Exception
Throws:
Exception

handleExceptionLastDitchEffort

void handleExceptionLastDitchEffort(Throwable throwable,
                                    PersistedMessage message,
                                    Object service)
                                    throws Exception
Throws:
Exception

isInException

boolean isInException(PersistedMessage message)
Determines whether the message would go into Exception if submitted.

Parameters:
message - The PersistedMessage instance to be tested.
Returns:
Returns true if the message would go into exception, otherwise returns false.


Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.