Class ConstraintViolationException

All Implemented Interfaces:
Serializable

public class ConstraintViolationException extends JDBCException
Implementation of JDBCException indicating that the requested DML operation resulted in a violation of a defined integrity constraint.
See Also:
  • Constructor Details

  • Method Details

    • getConstraintName

      public String getConstraintName()
      Returns the name of the violated constraint, if known.
      Returns:
      The name of the violated constraint, or null if not known.