ThrowIfNotSupportedByRequestedServerVersion method

void ThrowIfNotSupportedByRequestedServerVersion()
Throw exception if request is not supported in requested server version.

Implementation

void ThrowIfNotSupportedByRequestedServerVersion() {
  if (Service.RequestedServerVersion.index <
      GetMinimumRequiredServerVersion().index) {
    throw ServiceVersionException("""string.Format(
                      Strings.RequestIncompatibleWithRequestVersion,
                      this.GetXmlElementName(),
                      this.GetMinimumRequiredServerVersion())""");
  }
}