Extend JDBC catch to include Errors

This should help resolve a situation where `getClientInfo` is not implemented and throws an `AbstractMethodError`.
This commit is contained in:
Tyler Benson 2020-04-20 11:59:33 -04:00
parent 437e0f343d
commit fe0b8f5e50
1 changed files with 1 additions and 1 deletions

View File

@ -73,7 +73,7 @@ public class JDBCDecorator extends DatabaseClientDecorator<DBInfo> {
if (url != null) { if (url != null) {
try { try {
dbInfo = JDBCConnectionUrlParser.parse(url, connection.getClientInfo()); dbInfo = JDBCConnectionUrlParser.parse(url, connection.getClientInfo());
} catch (final Exception ex) { } catch (final Throwable ex) {
// getClientInfo is likely not allowed. // getClientInfo is likely not allowed.
dbInfo = JDBCConnectionUrlParser.parse(url, null); dbInfo = JDBCConnectionUrlParser.parse(url, null);
} }