Class IncompatibleRemoteServiceException

public final class IncompatibleRemoteServiceException
extends RuntimeException
implements IsSerializable
Exception that will be passed to the AsyncCallback.onFailure(Throwable) method when an incompatibility is detected between a RemoteService client and its corresponding RemoteService server.

The correct response to receiving an instance of this exception in the AsyncCallback.onFailure(Throwable) method is to get the application into a state where a browser refresh can be done.

This exception can be caused by the following problems:

Note that on the client, the getCause() always return null.

Constructors

IncompatibleRemoteServiceException()Constructor used by RPC serialization.
IncompatibleRemoteServiceException(String)Constructs an instance with the specified message.
IncompatibleRemoteServiceException(String, Throwable)Constructs an instance with the specified message and cause.

Constructor Detail

IncompatibleRemoteServiceException

public IncompatibleRemoteServiceException()
Constructor used by RPC serialization. Note that the client side code will always get a generic error message.

IncompatibleRemoteServiceException

public IncompatibleRemoteServiceException(String msg)
Constructs an instance with the specified message.

Parameters

msg

IncompatibleRemoteServiceException

public IncompatibleRemoteServiceException(String msg, Throwable cause)
Constructs an instance with the specified message and cause.

Parameters

msg
cause