On Apr 13, 2006, at 4:24 PM, Doug Crawford wrote:

> Currently a deferred will catch any excpetion and pass it to the next
> errback.  But if there is no errback left in the chain nothing happens
> and that error is ignored.  This forces me to add the same errback to
> the end of every deferred chain just to catch some unexpected  
> exception
> like a TypeError.  Could we have deferred only catch a specific
> Mochikit defined exception and simply rethrow all others?  If a
> callback function really wanted an errback to be called it would have
> to throw this special MochiKit excpetion instead of just throwing
> Error().

That's definitely not going to happen.

It's also not possible to know when a Deferred is "done" (since there  
are no weakrefs or __del__ equivalent for JS), so there can't be some  
kind of error handler implicitly added to the end of the chain.  If  
you want to create robust async applications you're going to have to  
put error handlers at the end of any Deferred chain that you don't  
expect to see any errors from.

-bob


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"MochiKit" 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/mochikit
-~----------~----~----~----~------~----~------~--~---

Reply via email to