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
|
if (sqle.getNextException() == null
|
||||||
|| sqle.getNextException() == sqle) {
|
|| sqle.getNextException() == sqle) {
|
||||||
break;
|
break;
|
||||||
} else {
|
}
|
||||||
|
else {
|
||||||
sqle = sqle.getNextException();
|
sqle = sqle.getNextException();
|
||||||
}
|
}
|
||||||
} while (constraintName == null);
|
} while (constraintName == null);
|
||||||
|
|
||||||
return constraintName;
|
return constraintName;
|
||||||
} catch (NumberFormatException nfe) {
|
}
|
||||||
|
catch (NumberFormatException nfe) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue