I had almost the same problem, what I did was:
Added a function that return true if the error is set, false otherwise:
public final native boolean hasError() /*-{
if (this.error) return true;
else return false;
}-*/;
The i first check if hasError is true, if it is i throw an Exception in my code, if not, i check the response.
Hope it helps.
--
André Moraes
Analista de Desenvolvimento de Sistemas
andrebq@gmail.com
http://andredevchannel.blogspot.com/
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
No comments:
Post a Comment