Skip to content

Commit

Permalink
Avoid using ClientWebApplicationException as the cause of ClientWebAp…
Browse files Browse the repository at this point in the history
…plicationException
  • Loading branch information
geoand authored and holly-cummins committed Apr 20, 2023
1 parent 64e564b commit 074ee65
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,9 @@ protected Throwable unwrapException(Throwable t) {
+ invokedMethod.getDeclaringClass().getName() + "#"
+ invokedMethod.getName() + "'";
}
return new ClientWebApplicationException(message, webApplicationException,
return new ClientWebApplicationException(message,
webApplicationException instanceof ClientWebApplicationException ? webApplicationException.getCause()
: webApplicationException,
webApplicationException.getResponse());
}
return res;
Expand Down

0 comments on commit 074ee65

Please sign in to comment.