cuba.uniqueConstraintViolationPattern does not work. #PL-6180

This commit is contained in:
Konstantin Krivopustov 2015-11-23 05:45:46 +00:00
parent 2a5c72c00f
commit 4406ab9c57

View File

@ -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();