Class UniqueConstraintException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
BatchUniqueConstraintException

public class UniqueConstraintException extends JdbcException
Thrown to indicate that an unique constraint violation occurs.
See Also:
  • Field Details

    • kind

      protected final SqlKind kind
    • rawSql

      protected final String rawSql
    • formattedSql

      protected final String formattedSql
    • sqlFilePath

      protected final String sqlFilePath
  • 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