Class MigrateDbSqlScriptException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
migratedb.v1.core.api.MigrateDbException
migratedb.v1.core.internal.exception.MigrateDbSqlException
migratedb.v1.core.internal.sqlscript.MigrateDbSqlScriptException
- All Implemented Interfaces:
Serializable
This specific exception thrown when MigrateDB encounters a problem in SQL script
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionMigrateDbSqlScriptException(Resource resource, SqlStatement statement, SQLException sqlException) Creates new instance of MigrateDbSqlScriptException. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the line number in migration SQL script where exception occurred.Returns the failed statement in SQL script.Returns the failed statement in SQL script.Methods inherited from class migratedb.v1.core.api.MigrateDbException
getErrorCodeMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
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
- 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
Returns the failed statement in SQL script.- Returns:
- The failed statement.
-
getSqlStatement
Returns the failed statement in SQL script.- Returns:
- The failed statement.
-
getMessage
- Overrides:
getMessagein classMigrateDbSqlException
-