HHH-9166 handle nested exceptions with TemplatedViolatedConstraintNameExtracte - fixed bad braces
This commit is contained in:
parent
aa0aa0bc39
commit
8e2d1a12ae
|
@ -28,13 +28,15 @@ public abstract class TemplatedViolatedConstraintNameExtracter implements Violat
|
|||
if (sqle.getNextException() == null
|
||||
|| sqle.getNextException() == sqle) {
|
||||
break;
|
||||
} else {
|
||||
}
|
||||
else {
|
||||
sqle = sqle.getNextException();
|
||||
}
|
||||
} while (constraintName == null);
|
||||
|
||||
return constraintName;
|
||||
} catch (NumberFormatException nfe) {
|
||||
}
|
||||
catch (NumberFormatException nfe) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue