custom runtime exception got translated to StatusCodeException
I got my server side code to throw custom exceptions for a long time
and have a lot of working code to copy from.
this time, I throw a ExpiredSessionException, it got translated to
StatusCodeException. and on the client side, caught.getMessage() is
this huge html fragment, starting with Http Error: 500. the whole
message is too big to display in the error dialog and is unsuitable
for users.
the only difference I can detect is
1. the ExpiredSessionException is not a declared exception,
2. it is throw during the service() call, instead of in one the rpc
methods.
I am not sure what is the cause for loosing my original Exception.
how can I get gwt to throw my own exception and not the
StatusCodeException?
--
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.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home