Class ConstraintViolationException

    • Constructor Detail

      • ConstraintViolationException

        public ConstraintViolationException​(String message,
                                            SQLException root,
                                            @Nullable String constraintName)
      • ConstraintViolationException

        public ConstraintViolationException​(String message,
                                            SQLException root,
                                            String sql,
                                            @Nullable String constraintName)
    • Method Detail

      • getConstraintName

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