Esempio n. 1
0
    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)
Esempio n. 2
0
    def __init__ (self, value="timed-out"):

        self.value = value

        PologyError.__init__(str(self))