Exception thrown when an attempt to insert or update data results in violation of an primary key or unique constraint. Note that this is not necessarily a purely relational concept; unique primary keys are required by most database types.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Constructor for DuplicateKeyException.
| |||||||||||
Constructor for DuplicateKeyException.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.springframework.core.NestedRuntimeException
| |||||||||||
From class
java.lang.Throwable
| |||||||||||
From class
java.lang.Object
| |||||||||||
Constructor for DuplicateKeyException.
| msg | the detail message |
|---|
Constructor for DuplicateKeyException.
| msg | the detail message |
|---|---|
| cause | the root cause from the data access API in use |