Skip to content

Commit

Permalink
chore(apollo-java): Streamlined code
Browse files Browse the repository at this point in the history
  • Loading branch information
klboke committed Mar 16, 2023
1 parent ef4a6e7 commit bfe1c07
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public static String getDetailMessage(Throwable ex) {
continue;
}
builder.append(" [Cause: ")
.append(getThrowingClassName(cause))
.append(cause.getClass().getSimpleName())
.append("(")
.append(cause.getMessage())
.append(")");
Expand All @@ -64,7 +64,4 @@ public static String getDetailMessage(Throwable ex) {
return builder.toString();
}

public static String getThrowingClassName(Throwable throwable) {
return throwable.getClass().getSimpleName();
}
}

0 comments on commit bfe1c07

Please sign in to comment.