Thanks for the question. Given the following code snippet I am able to catch
the exception that falls through:
static {
GWT.setUncaughtExceptionHandler(new GWT.UncaughtExceptionHandler() {
public void onUncaughtException(Throwable e) {
Window.alert("caught it!");
}
});
}
public void bar() {
throw new RuntimeException("test");
}
public native void foo() /*-{
[email protected]_issue_sandbox::bar()();
}-*/;
public void onModuleLoad() {
Button b = new Button("Go", new ClickHandler() {
public void onClick(ClickEvent event) {
foo();
}
});
// Add it to the root panel.
RootPanel.get().add(b);
}
Would you mind following-up with code that replicates the issue?
Thanks,
Chris Ramsdale
On Mon, Oct 5, 2009 at 4:00 PM, 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?
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---