You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to gwt-pl...@googlegroups.com
I am migrating from RPC to REST Dispatch but I am unsure how to properly handle exceptions.
In RPC dispatch you would throw an ActionException (or subclass of) and in onFailure-method on client side check instanceof.
How is this done using REST dispatch? There is nothing in the documentation for REST dispatch and the Car Store project doesn't handle any exceptions in its *ResourceImpl-files. I'm using Resource delegates approach similar to Car store. Anyone have some code examples to link to for this?
Thanks!
Maxime Mériouma-Caron
unread,
Jun 26, 2015, 10:07:21 AM6/26/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to gwt-pl...@googlegroups.com
With REST, you pass the error state through HTTP status codes. You can pass a RestCallback instead of AsyncCallback when uaing the rest-dispatch. It has a setResppnse method which gives you access to the response (and it's status code).