fix sonar rule check violations

This commit is contained in:
wenshao
2012-08-29 19:02:22 +08:00
parent f3d2a88c4d
commit e72a2c5e0f
14 changed files with 123 additions and 108 deletions
@@ -250,9 +250,9 @@ public class DruidDriver implements Driver, DruidDriverMBean {
try {
rawDriver = (Driver) rawDriverClass.newInstance();
} catch (InstantiationException e) {
throw new SQLException("create driver instance error, driver className '" + className + "'");
throw new SQLException("create driver instance error, driver className '" + className + "'", e);
} catch (IllegalAccessException e) {
throw new SQLException("create driver instance error, driver className '" + className + "'");
throw new SQLException("create driver instance error, driver className '" + className + "'", e);
}
return rawDriver;