(self, value, pos=None)
Initialise error.
Initialise error.
Initialise error .
def __init__(self, value, pos=None):
        """Initialise error."""
        Interrupt.__init__(self)
        self.err = value
        self.pos = pos
        try:
            self.message = self.messages[self.err]
        except KeyError:
            self.message = self.default_message
def __init__ ( self , value , pos = None ) : Interrupt . __init__ ( self ) self . err = value self . pos = pos try : self . message = self . messages [ self . err ] except KeyError : self . message = self . default_message