On 5 oct, 22:00, tieTYT <[email protected]> wrote:
> I've noticed that if JSNI calls your GWT code, the
> UncaughtExceptionHandler doesn't get called when an exception falls
> through.  Besides wrapping every method in a try/catch, is there
> another more elegant solution to this?

It depends how (when) your JSNI calls your Java code. If it's in a
callback that will be called asynchronously, then you have to handle
exceptions and route them to the UncaughtExceptionHandler yourself.
Have a look at how GWT does this for, e.g. RequestBuilder, Timer,
DeferredCommand, event handling, etc.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to