mirror of
https://gitee.com/jmix/cuba.git
synced 2024-11-30 18:27:56 +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;
|
||||
try {
|
||||
while (t != null) {
|
||||
if (t.toString().contains("org.springframework.dao.DataIntegrityViolationException")
|
||||
|| t.toString().contains("org.springframework.orm.jpa.JpaSystemException")) {
|
||||
if (t.toString().contains("org.eclipse.persistence.exceptions.DatabaseException")) {
|
||||
return doHandle(t, windowManager);
|
||||
}
|
||||
t = t.getCause();
|
||||
|
Loading…
Reference in New Issue
Block a user