예제 #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)
예제 #2
0
파일: timeout.py 프로젝트: KDE/pology
    def __init__ (self, value="timed-out"):

        self.value = value

        PologyError.__init__(str(self))