code: static UnsupportedOperationException unsupported(String message, String str, int pos) {
      return new UnsupportedOperationException(message + "\n" + context(str, pos));
    }
docs: Create an UnsupportedOperationException with a message including context based
  on the position.