public class DataIntegrityViolationException extends NonTransientDataAccessException
Serves as a superclass for more specific exceptions, e.g.
DuplicateKeyException. However, it is generally
recommended to handle DataIntegrityViolationException
itself instead of relying on specific exception subclasses.
| Constructor and Description |
|---|
DataIntegrityViolationException(String msg)
Constructor for DataIntegrityViolationException.
|
DataIntegrityViolationException(String msg,
Throwable cause)
Constructor for DataIntegrityViolationException.
|
contains, getMessage, getMostSpecificCause, getRootCauseaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic DataIntegrityViolationException(String msg)
msg - the detail message