MySqlExceptionSorter direct support com.mysql.jdbc.exceptions.jdbc4.CommunicationsException

This commit is contained in:
wenshao
2016-11-18 21:11:08 +08:00
parent 38e0350d47
commit 2dc90c572b
@@ -65,7 +65,8 @@ public class MySqlExceptionSorter implements ExceptionSorter {
}
String className = e.getClass().getName();
if ("com.mysql.jdbc.CommunicationsException".equals(className)) {
if ("com.mysql.jdbc.CommunicationsException".equals(className)
|| "com.mysql.jdbc.exceptions.jdbc4.CommunicationsException".equals(className)) {
return true;
}