Wednesday, January 25, 2012

Re: Exception error handling on the client-side

Ahhhh. I understand. In my case, I'm pretty sure I've waited long
enough as the exception handler is registered before any of the main
entry page is constructed. I have to manually click through a menu
system to get to a grid generation option that would have triggered
the NPE. I *think* in this case, that the exception handler would
have registered, no?

On Jan 25, 2:28 pm, Ed Bras <post2edb...@gmail.com> wrote:
> Yes that's correct, but it's all about what you do after that call.
> For some reason you need the code after to be executed Deferred such that
> the changes take effect.
> See:  http://code.google.com/webtoolkit/doc/1.6/DevGuideCodingBasics.html,
> the section about the DeferredCommand class.
>
>
>
>
>
>
>
> On Wed, Jan 25, 2012 at 10:12 PM, icfantv <adam.n.gor...@gmail.com> wrote:
> > I'm sorry, I don't exactly follow.  I have it set as the first line in
> > my EntryPoint's onModuleLoad() method.  Is this not the right place?
>
> > On Jan 25, 12:18 pm, Ed <post2edb...@gmail.com> wrote:
> > > Make sure to run the code after  calling
> > "GWT.setUncaughtExceptionHandler"
> > > deferred (Scheduler.scheduleDeferred). Only then the exception handler is
> > > "set" correctly and can be used.
>
> > --
> > 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.

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