com.xxdb.ServerExceptionUtils Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dolphindb-javaapi Show documentation
Show all versions of dolphindb-javaapi Show documentation
The messaging and data conversion protocol between Java and DolphinDB server
package com.xxdb;
public class ServerExceptionUtils {
public static boolean isNotLogin(String exMsg) {
return exMsg.indexOf("") >= 0;
}
public static boolean isNotLeader(String exMsg) {
if (exMsg == null)
return false;
return exMsg.indexOf("") >= 0;
}
public static boolean isDataNodeNotAvailable(String exMsg) {
if (exMsg == null)
return false;
return exMsg.indexOf("") >= 0;
}
public static String newLeader(String exMsg) {
return exMsg.substring(11);
}
}