Class MigrateDbSqlScriptException

    • Constructor Detail

      • MigrateDbSqlScriptException

        public MigrateDbSqlScriptException​(Resource resource,
                                           SqlStatement statement,
                                           SQLException sqlException)
        Creates new instance of MigrateDbSqlScriptException.
        Parameters:
        resource - The resource containing the failed statement.
        statement - The failed SQL statement.
        sqlException - Cause of the problem.
    • Method Detail

      • getResource

        public Resource getResource()
        Returns:
        The resource containing the failed statement.
      • getLineNumber

        public int getLineNumber()
        Returns the line number in migration SQL script where exception occurred.
        Returns:
        The line number.
      • getStatement

        public String getStatement()
        Returns the failed statement in SQL script.
        Returns:
        The failed statement.
      • getSqlStatement

        public SqlStatement getSqlStatement()
        Returns the failed statement in SQL script.
        Returns:
        The failed statement.