org.granite.client.tide.server
Interface ExceptionHandler

All Known Implementing Classes:
BaseIdentity, Identity, Identity, OptimisticLockExceptionHandler, ValidationExceptionHandler

public interface ExceptionHandler

Author:
William DRAI

Method Summary
 boolean accepts(FaultMessage emsg)
          Should return true if this handler is able to manage the specified ErrorMessage
 void handle(Context context, FaultMessage emsg, TideFaultEvent faultEvent)
          Handle the error
 

Method Detail

accepts

boolean accepts(FaultMessage emsg)
Should return true if this handler is able to manage the specified ErrorMessage

Parameters:
emsg - an error message
Returns:
true if ErrorMessage accepted

handle

void handle(Context context,
            FaultMessage emsg,
            TideFaultEvent faultEvent)
Handle the error

Parameters:
context - the context in which the error occured
emsg - the error message
event - the full fault event