Class DataIntegrityViolationException

All Implemented Interfaces:
Serializable

public class DataIntegrityViolationException extends DomainException
Exception thrown when a persistence operation fails due to a data integrity constraint.

Typically wraps a lower-level constraint violation reported by the persistence framework, such as a unique key violation or a foreign key constraint failure.

See Also:
  • Constructor Details

    • DataIntegrityViolationException

      public DataIntegrityViolationException(String message)
      Constructs a DataIntegrityViolationException with the given detail message.
      Parameters:
      message - the detail message describing the integrity violation
    • DataIntegrityViolationException

      public DataIntegrityViolationException(String message, Throwable cause)
      Constructs a DataIntegrityViolationException with the given detail message and cause.
      Parameters:
      message - the detail message describing the integrity violation
      cause - the underlying cause