def __init__(self, thread_description, e):
    self.message = ("An error occurred in thread '%s': %s" % (thread_description, str(e)))
    self.code = 'THREAD_EXCEPTION'
def __init__(self, thread_description, e):
    self.message = ("An error occurred in thread '%s': %s" % (thread_description, str(e)))
    self.code = 'THREAD_EXCEPTION'