Skip to content

Commit

Permalink
fix(irs-api):[#538] fix checkstyle
Browse files Browse the repository at this point in the history
  • Loading branch information
ds-jhartmann committed Jul 15, 2024
1 parent 0e9b5fe commit b1c0f79
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,8 @@ private static String getRootErrorMessages(final Throwable throwable) {
if (cause != null) {
Throwable rootCause = cause;
int depth = 0;
while (rootCause.getCause() != null || hasSuppressedExceptions(rootCause) || depth > 10) {
final int maxDepth = 10;
while (rootCause.getCause() != null || hasSuppressedExceptions(rootCause) || depth > maxDepth) {
if (hasSuppressedExceptions(rootCause)) {
rootCause = rootCause.getSuppressed()[0];
} else {
Expand Down

0 comments on commit b1c0f79

Please sign in to comment.