There is -- See the method GWT.setUncaughtExceptionHandler().
Your ExceptionHandler will be called whenever you fail to catch an exception
on the client side.

--Sri


2009/9/23 Trevis <trevistho...@gmail.com>

>
> Hm, i think that tieTYE's question is more along the lines of is there
> something like the doUnexpectedFailure(Throwable t) in the client
> (which i'd like to know as well)
>
> Trevis
>
> On Sep 22, 8:25 pm, tieTYT <tie...@gmail.com> wrote:
> > When I'm in hosted mode, if my client code throws a runtime exception,
> > it seems to be swallowed and not reported.  For example, if I put a
> > "throw new NullPointerException()" at the end of a method.  I can use
> > the debugger to find the exact line that's throwing the exception but
> > when it occurs it just fails silently.  There's no info in the Shell
> > or on the console and the app doesn't even necessarily act like there
> > was an error.
> >
> > I'm not very familiar with our code or GWT so I have to ask: is this
> > normal, expected GWT behavior or is our code failing to print a stack
> > trace?
> >
> > If this is GWT's fault, what's the work around?  Someone on the irc
> > channel suggested I wrap all my client code around a try/catch but
> > that seems a little inconvenient and messy.
> >
>

--~--~---------~--~----~------------~-------~--~----~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to