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

(cherry picked from commit afa5e42)
  • Loading branch information
geoand authored and gsmet committed Apr 25, 2023
1 parent 0f0ff8f commit 07a5fa2
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 07a5fa2

Please sign in to comment.