Interface AsyncCallbackOnFailure


public interface AsyncCallbackOnFailure
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Called when an asynchronous call fails to complete normally.
  • Method Details

    • onFailure

      void onFailure(Throwable caught)
      Called when an asynchronous call fails to complete normally. IncompatibleRemoteServiceExceptions, InvocationExceptions, or checked exceptions thrown by the service method are examples of the type of failures that can be passed to this method.

      If caught is an instance of an IncompatibleRemoteServiceException the application should try to get into a state where a browser refresh can be safely done.

      Parameters:
      caught - failure encountered while executing a remote procedure call