+class DeferredException(Exception):
+ """ Exception object holding a traceback for asynchronous reporting.
+
+ Some RPC calls (database creation and report generation) happen with
+ an initial request followed by multiple, polling requests. This class
+ is used to store the possible exception occuring in the thread serving
+ the first request, and is then sent to a polling request.
+
+ ('Traceback' is misleading, this is really a exc_info() triple.)
+ """
+ def __init__(self, msg, tb):
+ self.message = msg
+ self.traceback = tb