com.xxdb.ServerExceptionUtils Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of api-java Show documentation
Show all versions of api-java 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 String newLeader(String exMsg) {
return exMsg.substring(11);
}
}