com.googlecode.gwt.test.rpc.GwtRpcExceptionHandler Maven / Gradle / Ivy
package com.googlecode.gwt.test.rpc;
import com.google.gwt.user.client.rpc.AsyncCallback;
/**
*
* An interface which exposes one callback method to be called when an exception occurs during a RPC
* service invocation.
*
*
*
* The used instance of GwtRpcExceptionHandler is specified by
* {@link RemoteServiceCreateHandler#getExceptionHandler()}, which can be overriden.
*
*
* @author Bertrand Paquet
*/
public interface GwtRpcExceptionHandler {
/**
* The callback method which is called if the RPC service invocation throws an exception.
*
* @param t The thrown exception.
* @param callback The asynchrone callback provided by the RPC service caller.
*/
void handle(Throwable t, AsyncCallback callback);
}