def __init__(self, code): UserException.__init__(self, self.MESSAGES[code]) self.code = code
def __init__(self, fault_code, internal_message=None): UserException.__init__(self) self.fault_code = fault_code self._internal_message = internal_message