if (continueOnError || (dropStatement && ignoreFailedDrops)) { if (logger.isDebugEnabled()) { logger.debug(ScriptStatementFailedException.buildErrorMessage(statement, stmtNumber, resource), ex); throw new ScriptStatementFailedException(statement, stmtNumber, resource, ex);
throw new ScriptStatementFailedException(statement, lineNumber, resource, ex);
/** * Construct a new {@code ScriptStatementFailedException}. * @param stmt the actual SQL statement that failed * @param stmtNumber the statement number in the SQL script (i.e., * the n<sup>th</sup> statement present in the resource) * @param encodedResource the resource from which the SQL statement was read * @param cause the underlying cause of the failure */ public ScriptStatementFailedException(String stmt, int stmtNumber, EncodedResource encodedResource, Throwable cause) { super(buildErrorMessage(stmt, stmtNumber, encodedResource), cause); }
private void populate(ResourceDatabasePopulator populator, DataSource ds) { try { execute(populator, ds); logger.info("Database created."); } catch (ScriptStatementFailedException ex) { logger.warn("Failed to create the database, possibly already created: {}", ex.getMessage()); logger.debug("Failed to create the database", ex); } catch (Exception ex) { logger.warn("Failed to create the database", ex); } }
/** * Construct a new {@code ScriptStatementFailedException}. * @param stmt the actual SQL statement that failed * @param stmtNumber the statement number in the SQL script (i.e., * the n<sup>th</sup> statement present in the resource) * @param encodedResource the resource from which the SQL statement was read * @param cause the underlying cause of the failure */ public ScriptStatementFailedException(String stmt, int stmtNumber, EncodedResource encodedResource, Throwable cause) { super(buildErrorMessage(stmt, stmtNumber, encodedResource), cause); }
private void populate(ResourceDatabasePopulator populator, DataSource ds) { try { execute(populator, ds); logger.info("Database created."); } catch (ScriptStatementFailedException ex) { logger.warn("Failed to create the database, possibly already created: {}", ex.getMessage()); logger.debug("Failed to create the database", ex); } catch (Exception ex) { logger.warn("Failed to create the database", ex); } }
if (continueOnError || (dropStatement && ignoreFailedDrops)) { if (logger.isDebugEnabled()) { logger.debug(ScriptStatementFailedException.buildErrorMessage(statement, stmtNumber, resource), ex); throw new ScriptStatementFailedException(statement, stmtNumber, resource, ex);