'Sets the error and traceback information for this thread.
This must be called from an exception handler.'

def SetError(self):

    if (not self.error):
        exc_info = sys.exc_info()
        self.error = exc_info[1]
        self.traceback = exc_info[2]
