This commit is contained in:
Thomas Vander Stichele
2011-03-15 22:41:08 +00:00
parent 8bfa337180
commit d0c87c3861

View File

@@ -109,7 +109,12 @@ class Task(object, log.Loggable):
self._notifyListeners('described', description)
self.description = description
# FIXME: does not actually raise
def setAndRaiseException(self, exception):
"""
Call this to set a synthetically created exception (and not one
that was actually raised and caught)
"""
import traceback
stack = traceback.extract_stack()[:-1]