Package com.google.gwt.user.client.rpc
Class IncompatibleRemoteServiceException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException
-
- All Implemented Interfaces:
IsSerializable,java.io.Serializable
public final class IncompatibleRemoteServiceException extends java.lang.RuntimeException implements IsSerializable
Exception that will be passed to theAsyncCallback.onFailure(Throwable)method when an incompatibility is detected between aRemoteServiceclient and its correspondingRemoteServiceserver.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:
- The requested
RemoteServicecannot be located viaClass.forName(String)on the server. - The requested
RemoteServiceinterface is not implemented by theRemoteServiceServletinstance which is configured to process the request. - The requested service method is not defined or inherited by the
requested
RemoteServiceinterface. - One of the types used in the
RemoteServicemethod invocation has had fields added or removed. - The client code receives a type from the server which it cannot deserialize.
Note that on the client, the
Throwable.getCause()always returnnull.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description IncompatibleRemoteServiceException()Constructor used by RPC serialization.IncompatibleRemoteServiceException(java.lang.String msg)Constructs an instance with the specified message.IncompatibleRemoteServiceException(java.lang.String msg, java.lang.Throwable cause)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(java.lang.String msg)
Constructs an instance with the specified message.
-
IncompatibleRemoteServiceException
public IncompatibleRemoteServiceException(java.lang.String msg, java.lang.Throwable cause)Constructs an instance with the specified message and cause.
-
-