Friday, April 1, 2011

Re: how to return errors from RequestFactoryServlet?

Hi Khiem, thanks for your reply.

Are you saying that RequestFactoryServlet must be extended, and an ExceptionHandler must be installed somehow? If so, what exactly does the ExceptionHandler need to do? 

My server code is already throwing exceptions; it's just that they're not getting propagated back to my client code.

On the client I have code that does something like:

requestContext.fire(new  Receiver<T>() { 

    public void onSuccess(T response) { 
       // etc. 
    }

      public void onFailure(ServerFailure error)
     {
         // this never gets called
  }
});

I appreciate your suggestion to search the group, but I have done so many times. Something is just broken with Google's new groups UI. I couldn't even find this thread to reply to you (I received your reply in an email); I had to back out of Google Groups and search with google.com, rather than Google Groups. It's really frustrating.

Thanks again.



 


--
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