Hi,
Can i pass exceptions between client and server.
Can i have an RPC serice with method that throw an user defined
exception and handle that exception in the client side?
I created an userdefined exception:
------------------------------------------------------
public class IllegalDateRangeException extends SerializationException
implements IsSerializable
{
private String errorMessage = null;
public IllegalDateRangeException ( String error )
{
errorMessage = error;
}
public String toString()
{
return "Exception occurred: " + errorMessage;
}
public String getErrorMessage()
{
return errorMessage;
}
public void setErrorMessage( String errorMessage )
{
this.errorMessage = errorMessage;
}
}
and my RPC method throws this exception:
------------------------------------------------
public String create(Rule rule) throws IllegalDateRangeException;
and i want to catch this exception in the client side and perform
actions.
But i get the following error from GWT:
[ERROR] Type
'com.cerner.cwx.ruleswizard.client.IllegalDateRangeException' was not
serializable and has no concrete serializable subtypes
Any suggestions?
Any help on this is greatly appreciated.
Thank you
Satya
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---