def __init__ (self, msg): """ Constructor. All the parameters are made available as instance variables. @param msg: a description of what went wrong @type msg: string """ self.msg = msg PologyError.__init__(self, msg)
def __init__ (self, value="timed-out"): self.value = value PologyError.__init__(str(self))