On Mon, Nov 30, 2009 at 3:14 AM, Ittai <[email protected]> wrote:

> Hello all,
> First of all I want to say what a great project this is! Thank you for
> all your efforts.
> Secondly I wanted to know if by using Log.setUncaughtExceptionHandler
> () the message "An error has occurred in the script on this page...do
> you want to contine running scripts on this page" which previousely
> would have been shown to the user would now just be logged and not
> shown?


The answer is 'it depends', but generally, yes, these messages can be
avoided and caught by gwt-log. You can test a few examples on the demo
page:
http://allen-sauer.com/com.allen_sauer.gwt.log.demo.LogDemo/LogDemo.html
The different buttons run different Java and JavaScript failure scenarios.
Note that the setTimeout() exception is only caught in Firefox and IE.



> And if this also means that if a script fails then the page
> will continue to function afterwards (of course aside from the script
> which yielded the exception)?
>

Events should continue to fire and if your code is otherwise working, the
page should continue to function.



> I'm not sure if this is important but I'm developing an app (not a
> site) which is web based and we need to resize the browser according
> to some logic which causes some problems if a few resize attempts are
> done too close together. I've started handlin this via GWTQuery but I
> also would like to make sure that even if the resizing itself will
> fail because the browser isn't ready yet this will just be logged and
> the message will not be shown and the page will continue to function
> afterwards (today it stops and requires manual refresh).
>
> Thanks in advance for any help,
> Ittai
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "gwt-log" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<gwt-log%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/gwt-log?hl=en.
>
>
>


-- 
Fred Sauer
Developer Advocate
Google Inc.1600 Amphitheatre Parkway
Mountain View, CA 94043
[email protected]

--

You received this message because you are subscribed to the Google Groups 
"gwt-log" 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/gwt-log?hl=en.


Reply via email to