added additional error handling

Former-commit-id: 7853689d3273afaa348a7e16c26d3c2cf14b5c9b
This commit is contained in:
Jeremy Long
2014-04-16 08:13:38 -04:00
parent b24c63cb49
commit ccefea6b59

View File

@@ -185,6 +185,9 @@ public final class ConnectionFactory {
DriverManager.deregisterDriver(driver);
} catch (SQLException ex) {
Logger.getLogger(ConnectionFactory.class.getName()).log(Level.FINE, "An error occured unloading the databse driver", ex);
} catch (Throwable unexpected) {
Logger.getLogger(ConnectionFactory.class.getName()).log(Level.FINE,
"An unexpected throwable occured unloading the databse driver", unexpected);
}
driver = null;
}