worker thread catching exceptions and putting them in queue

Paul Sijben paul.sijben at xs4all.nl
Mon Mar 5 11:45:44 EST 2007


All,

in a worker thread setup that communicates via queues is it possible to
catch exceptions raised by the worker executed, put them in an object
and send them over the queue to another thread where the exception is
raised in that scope?

considering that an exception is an object I feel it ought to be
possible, however I do not see how to go about it.

does anyone have a pointer towards the solution?

Paul



More information about the Python-list mailing list