public class DuplicateKeyException extends DataIntegrityViolationException
Consider handling the general DataIntegrityViolationException
instead, semantically including a wider range of constraint violations.
Constructor and Description |
---|
DuplicateKeyException(String msg)
Constructor for DuplicateKeyException.
|
DuplicateKeyException(String msg,
Throwable cause)
Constructor for DuplicateKeyException.
|
contains, getMessage, getMostSpecificCause, getRootCause
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public DuplicateKeyException(String msg)
msg
- the detail message