protected static void CheckDistanceSubQueries(DistanceQuery distq, string opName) { string m = distq.DistanceSubQueryNotAllowed(); if (m != null) { throw new ParseException("Operator " + opName + ": " + m); } }