'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]
        logger.exception('[%s]    %s:', self.getName(), self.__class__.__name__)
