Revision 3013 trunk/libraries/libDriverManager/src/com/hardcode/driverManager/DriverManager.java
DriverManager.java | ||
---|---|---|
167 | 167 |
public Driver getDriver(String name) throws DriverLoadException { |
168 | 168 |
try { |
169 | 169 |
Class driverClass = (Class) nombreDriverClass.get(name); |
170 |
if (driverClass == null) throw new DriverLoadException("No se encontr? el driver.");
|
|
170 |
if (driverClass == null) throw new DriverLoadException("No se encontr? el driver: " + name);
|
|
171 | 171 |
return (Driver) driverClass.newInstance(); |
172 | 172 |
} catch (InstantiationException e) { |
173 | 173 |
throw new DriverLoadException(e); |
Also available in: Unified diff