Signed-off-by:Roland Häder <roland@mxchange.org>
// Init default values:
// Default database backend
BaseFrameworkSystem.properties.put("org.mxchange.database.backend.class", "org.mxchange.jcore.database.backend.base64.Base64CsvDatabaseBackend"); //NOI18N
- BaseFrameworkSystem.properties.put("database.backend.storagepath", "data/"); //NOI18N
+ BaseFrameworkSystem.properties.put("org.mxchange.database.backend.storagepath", "data/"); //NOI18N
// For MySQL backend
BaseFrameworkSystem.properties.put("org.mxchange.database.mysql.host", "localhost"); //NOI18N
// Trace message
this.getLogger().trace(MessageFormat.format("driverName={0} - CALLED!", driverName)); //NOI18N
- // Try to find the driver in driver list
+ // driverName shall not be null
+ if (driverName == null) {
+ // Is null
+ throw new NullPointerException("driverName is null");
+ }
+
+ // Get all registered/installed drivers
Enumeration<Driver> drivers = DriverManager.getDrivers();
// Default is not found
*/
public UnsupportedDatabaseDriverException (final String driverName) {
// Call super method
- super(MessageFormat.format("Database driver {0} is not found.", driverName));
+ super(MessageFormat.format("Database driver {0} is not found.", driverName)); //NOI18N
}
}