Class SqlExecutionException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
BatchSqlExecutionException

public class SqlExecutionException extends JdbcException
Thrown to indicate that the SQL execution is failed.
See Also:
  • Field Details

    • kind

      protected final SqlKind kind
    • rawSql

      protected final String rawSql
    • formattedSql

      protected final String formattedSql
    • sqlFilePath

      protected final String sqlFilePath
    • rootCause

      protected final Throwable rootCause
  • Constructor Details

  • Method Details

    • getKind

      public SqlKind getKind()
      Returns the SQL kind.
      Returns:
      the SQL kind
    • getRawSql

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

      public String getFormattedSql()
      Returns the formatted SQL string
      Returns:
      the formatted SQL or null if this exception is thrown in the batch process
    • getSqlFilePath

      public String getSqlFilePath()
      Returns the SQL file path.
      Returns:
      the SQL file path or null if the SQL is auto generated
    • getRootCause

      public Throwable getRootCause()
      Returns the root cause.
      Returns:
      the root cause