com.google.enterprise.adaptor
Interface ExceptionHandler


public interface ExceptionHandler

Interface for handling errors and handling retrying policy.


Method Summary
 boolean handleException(Exception ex, int ntries)
          Determine how to proceed after an exception was thrown.
 

Method Detail

handleException

boolean handleException(Exception ex,
                        int ntries)
                        throws InterruptedException
Determine how to proceed after an exception was thrown. The thrown exception is provided as well as the number of times the call has been attempted. It is fine to call Thread.sleep() before returning.

Returns:
true for immediate retry, false to abort
Throws:
InterruptedException