mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
MySqlExceptionSorter direct support com.mysql.jdbc.exceptions.jdbc4.CommunicationsException
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user