Slightly improved error message when DBSource could not be loaded

(include possibility that driver couldn't be loaded)
This commit is contained in:
hns 2003-11-28 13:09:05 +00:00
parent a79dfbde18
commit d0c7012318

View file

@ -365,7 +365,7 @@ public final class DbMapping implements Updatable {
}
if (dbSource == null) {
throw new SQLException("Datasource is not defined: " + dbSourceName + ".");
throw new SQLException("Datasource not defined or unable to load driver: " + dbSourceName + ".");
}
return dbSource.getConnection();