Module utility.domain.exception
Class DataIntegrityViolationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
uk.co.jasonmarston.kiunzi.utility.domain.exception.DomainException
uk.co.jasonmarston.kiunzi.utility.domain.exception.DataIntegrityViolationException
- All Implemented Interfaces:
Serializable
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 Summary
ConstructorsConstructorDescriptionDataIntegrityViolationException(String message) Constructs aDataIntegrityViolationExceptionwith the given detail message.DataIntegrityViolationException(String message, Throwable cause) Constructs aDataIntegrityViolationExceptionwith the given detail message and cause. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
DataIntegrityViolationException
Constructs aDataIntegrityViolationExceptionwith the given detail message.- Parameters:
message- the detail message describing the integrity violation
-
DataIntegrityViolationException
Constructs aDataIntegrityViolationExceptionwith the given detail message and cause.- Parameters:
message- the detail message describing the integrity violationcause- the underlying cause
-