def __init__(self, name, found): if found == Tags.global_: found = "global" elif found == Tags.user: found = "user" else: found = "??? (%s)" % found EupsException.__init__(self, "Tag \"%s\" is already present in group %s" % (name, found)) self.name = name, self.found = found
def __init__(self, name, found): if found == Tags.global_: found = "global" elif found == Tags.user: found = "user" else: found = "??? (%s)" % found EupsException.__init__( self, "Tag \"%s\" is already present in group %s" % (name, found)) self.name = name, self.found = found
def __init__(self, name, group=None, msg=None): message = msg if message is None: if group == Tags.user: message = "User tag not recognized: " + name elif group == Tags.global_: message = "Global tag not recognized: " + name elif group is None: message = "Tag not recognized: " + name else: message = "Tag not recognized: %s:%s" % (group, name) EupsException.__init__(self, message) self.name = name, self.group = group
def __init__(self, name, group=None, msg=None): message = msg if message is None: if group == Tags.user: message = "User tag not recognized: " + name elif group == Tags.global_: message = "Global tag not recognized: " + name elif group is None: message = "Tag not recognized: " + name else: message = "Tag not recognized: %s:%s" % (group, name) EupsException.__init__(self, message) self.name = name, self.group = group