mirror of
https://gitee.com/jmix/cuba.git
synced 2024-12-02 19:27:57 +08:00
cuba.uniqueConstraintViolationPattern does not work. #PL-6180
This commit is contained in:
parent
2a5c72c00f
commit
4406ab9c57
@ -38,8 +38,7 @@ public class UniqueConstraintViolationHandler implements GenericExceptionHandler
|
|||||||
Throwable t = exception;
|
Throwable t = exception;
|
||||||
try {
|
try {
|
||||||
while (t != null) {
|
while (t != null) {
|
||||||
if (t.toString().contains("org.springframework.dao.DataIntegrityViolationException")
|
if (t.toString().contains("org.eclipse.persistence.exceptions.DatabaseException")) {
|
||||||
|| t.toString().contains("org.springframework.orm.jpa.JpaSystemException")) {
|
|
||||||
return doHandle(t, windowManager);
|
return doHandle(t, windowManager);
|
||||||
}
|
}
|
||||||
t = t.getCause();
|
t = t.getCause();
|
||||||
|
Loading…
Reference in New Issue
Block a user