Class ScriptException

All Implemented Interfaces:
Serializable

public class ScriptException extends JdbcException
Thrown to indicate that the one of SQL statements in a script file throws an exception.
See Also:
  • Field Details

    • rawSql

      protected final String rawSql
    • scriptFilePath

      protected final String scriptFilePath
    • lineNumber

      protected final int lineNumber
  • Constructor Details

    • ScriptException

      public ScriptException(Throwable cause, Sql<?> sql, int lineNumber)
    • ScriptException

      public ScriptException(Throwable cause, String rawSql, String scriptFilePath, int lineNumber)
  • Method Details

    • getRawSql

      public String getRawSql()
      Returns the raw SQL string.
      Returns:
      the raw SQL string
    • getScriptFilePath

      public String getScriptFilePath()
      Returns the script file path.
      Returns:
      the script file path
    • getLineNumber

      public int getLineNumber()
      Returns the line number of the script file.
      Returns:
      the line number