2009/12/3 Peter Ingebretson <pinge...@yahoo.com>: >> The ability to pass exception instances caught in one >> context, to be raised eventually in another.. it does >> not seem like a good programming practice. > > In general I agree with this, but in some specific cases I have found it > useful to be able to treat method invocations and "worker" tasklets in a > homogeneous manner. > > This makes it possible to transparently turn a method call into a worker > tasklet. In order for this to be fully transparent, worker tasklets need to > be able to propagate exceptions up to their owner in the same manner as > invoked methods can propagate exceptions up to their caller.
There must be some boilerplate involved though? Given that you more than likely set up a channel and launch the tasklet, does a little more to take a passed exception and raise it, make that much more of a difference? Richard. _______________________________________________ Stackless mailing list Stackless@stackless.com http://www.stackless.com/mailman/listinfo/stackless