(self, args)
ON ERROR GOTO: define error trapping routine.
ON ERROR GOTO: define error trapping routine.
ON ERROR GOTO : define error trapping routine .
def on_error_goto_(self, args):
        """ON ERROR GOTO: define error trapping routine."""
        linenum, = args
        if linenum != 0 and linenum not in self._program.line_numbers:
            raise error.BASICError(error.UNDEFINED_LINE_NUMBER)
        self.on_error = linenum
        # pause soft-handling math errors so that we can catch them
        self._values.error_handler.suspend(linenum != 0)
        # ON ERROR GOTO 0 in error handler
        if self.on_error == 0 and self.error_handle_mode:
            # re-raise the error so that execution stops
            raise error.BASICError(self.error_num, self.error_pos)
def on_error_goto_ ( self , args ) : linenum , = args if linenum != 0 and linenum not in self . _program . line_numbers : raise error . BASICError ( error . UNDEFINED_LINE_NUMBER ) self . on_error = linenum # pause soft-handling math errors so that we can catch them self . _values . error_handler . suspend ( linenum != 0 ) # ON ERROR GOTO 0 in error handler if self . on_error == 0 and self . error_handle_mode : # re-raise the error so that execution stops raise error . BASICError ( self . error_num , self . error_pos )