org.granite.client.tide.data
Class OptimisticLockExceptionHandler

java.lang.Object
  extended by org.granite.client.tide.data.OptimisticLockExceptionHandler
All Implemented Interfaces:
ExceptionHandler

public class OptimisticLockExceptionHandler
extends Object
implements ExceptionHandler

Author:
William DRAI

Constructor Summary
OptimisticLockExceptionHandler()
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OptimisticLockExceptionHandler

public OptimisticLockExceptionHandler()
Method Detail

accepts

public boolean accepts(FaultMessage emsg)
Description copied from interface: ExceptionHandler
Should return true if this handler is able to manage the specified ErrorMessage

Specified by:
accepts in interface ExceptionHandler
Parameters:
emsg - an error message
Returns:
true if ErrorMessage accepted

handle

public void handle(Context context,
                   FaultMessage emsg,
                   TideFaultEvent faultEvent)
Description copied from interface: ExceptionHandler
Handle the error

Specified by:
handle in interface ExceptionHandler
Parameters:
context - the context in which the error occured
emsg - the error message