org.granite.client.tide.data
Class ValidationExceptionHandler

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

public class ValidationExceptionHandler
extends Object
implements ExceptionHandler

Author:
William DRAI

Constructor Summary
ValidationExceptionHandler()
           
 
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

ValidationExceptionHandler

public ValidationExceptionHandler()
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