You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Feign core 10.X.X allows capturing the Request made from a Response - meaning that we can include the original request into an exception if required.
The requirement here is to detect if one of the parameters in the constructor for the exception is of type Request, and if so, put the original request into that field.
In a later iteration we can ask people want us to do more parsing (like only include request headers based on a @RequestHeaders tag or only the request body based on a @RequestBody tag) - though for now we expect handing over the Request itself is probably more than enough (would want to see usecases for anything further).
Hence - put simply - when an exception is defined as: