added additional error handling

Former-commit-id: 2922b534e1f11f66c0d1bdff3136b560a467e3f1
This commit is contained in:
Jeremy Long
2014-04-16 08:13:38 -04:00
parent dd925cd92b
commit 535863bc52

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;
}