[Minor] no need to catch init exception in PostgreSqlPersistenceHandler

This commit is contained in:
Robert von Burg 2015-06-11 19:12:09 +02:00
parent 521bd84ce0
commit 3a197d6629
1 changed files with 1 additions and 8 deletions

View File

@ -43,9 +43,7 @@ import li.strolch.persistence.postgresql.PostgreSqlDbConnectionBuilder.StrolchPo
import li.strolch.runtime.configuration.ComponentConfiguration;
import li.strolch.runtime.configuration.DbConnectionBuilder;
import li.strolch.runtime.configuration.StrolchConfiguration;
import li.strolch.runtime.configuration.StrolchConfigurationException;
import li.strolch.runtime.privilege.PrivilegeHandler;
import ch.eitchnet.db.DbException;
import ch.eitchnet.db.DbMigrationState;
import ch.eitchnet.db.DbSchemaVersionCheck;
import ch.eitchnet.privilege.model.Certificate;
@ -98,12 +96,7 @@ public class PostgreSqlPersistenceHandler extends StrolchComponent implements Pe
DbSchemaVersionCheck schemaVersionCheck = new DbSchemaVersionCheck(SCRIPT_PREFIX, this.getClass(),
allowSchemaCreation, allowSchemaMigration, allowSchemaDrop);
try {
schemaVersionCheck.checkSchemaVersion(this.dsMap);
} catch (DbException e) {
String msg = "Failed to validate the schema for a connection: {0}"; //$NON-NLS-1$
throw new StrolchConfigurationException(MessageFormat.format(msg, e.getMessage()), e);
}
schemaVersionCheck.checkSchemaVersion(this.dsMap);
// if allowed, perform DB initialization
if (!allowSchemaCreation || !allowDataInitOnSchemaCreate) {