Class MigrateDbSqlScriptException

All Implemented Interfaces:
Serializable

public class MigrateDbSqlScriptException extends MigrateDbSqlException
This specific exception thrown when MigrateDB encounters a problem in SQL script
See Also:
  • Constructor Details

    • 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 Details

    • 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.
    • getMessage

      public String getMessage()
      Overrides:
      getMessage in class MigrateDbSqlException