Catch throwable instead of exception when handling hikari errors (#2444)

This commit is contained in:
Luck 2020-07-16 20:26:54 +01:00
parent f72a5cb6b5
commit 47ca6b162b
No known key found for this signature in database
GPG Key ID: EFA9B3EC5FD90F8B

View File

@ -173,7 +173,7 @@ public abstract class HikariConnectionFactory implements ConnectionFactory {
Class<?> clazz;
try {
clazz = Class.forName(className);
} catch (Exception ex) {
} catch (Exception e) {
continue;
}
@ -181,7 +181,7 @@ public abstract class HikariConnectionFactory implements ConnectionFactory {
String loaderName;
try {
loaderName = plugin.getBootstrap().identifyClassLoader(loader) + " (" + loader.toString() + ")";
} catch (Exception e) {
} catch (Throwable e) {
loaderName = loader.toString();
}