Yes, it makes sense, further exception simply erase the previous one I guess
so when the vm retracts to the first finally, it has the last exception
thrown, not the first one and not all of them... I guess Oo
But more importantly, if we're dealing with $(document).init() for instance,
who is the caller? Who will receive the exception(s) and what should it do
with it? Executing callbacks provided by calling
$(document).init.error(...)?

That's what I find confusing in the end. The caller is not the one who gave
the callback in the first place.

2009/3/24 John Resig <[email protected]>

>
> > Won't you get only the latest exception thrown or will you get all the
> > exceptions? I never used exceptions that intensely in javascript.
>
> Good question - in the dummy code that I posted it appears that only
> the last one goes into the try/catch - but if you think about it, that
> makes sense since there's only one error that can be caught at a time
> by a try/catch.
>
> --John
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery Development" 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/jquery-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to