io.milvus.client.exception.UnsupportedServerVersion Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of milvus-sdk-java Show documentation
Show all versions of milvus-sdk-java Show documentation
Java SDK for Milvus, a distributed high-performance vector search engine.
update grpc to 1.42.1
update protobuf to 3.19.1
package io.milvus.client.exception;
import io.milvus.client.MilvusClient;
public class UnsupportedServerVersion extends MilvusException {
private String host;
private String expect;
private String actual;
public UnsupportedServerVersion(String host, String expect, String actual) {
super(false);
this.host = host;
this.expect = expect;
this.actual = actual;
}
@Override
public String getMessage() {
return String.format("%s: Milvus client %s is expected to work with Milvus server %s, but the version of the connected server is %s",
host, MilvusClient.clientVersion, expect, actual);
}
}