improved mysql exception sorter

This commit is contained in:
wenshao
2014-12-07 15:18:31 +08:00
parent 76fe5899f0
commit fdbe4eb86c
@@ -55,9 +55,15 @@ public class MySqlExceptionSorter implements ExceptionSorter {
break;
}
// for oceanbase
if (errorCode >= -10000 && errorCode <= -9000) {
return true;
}
String className = e.getClass().getName();
if ("com.mysql.jdbc.CommunicationsException".equals(className)) {
return true;
}
String message = e.getMessage();
if (message != null && message.length() > 0) {