OpenFeign/feign

RetryableException requires Request

Open

#1296 aperta il 27 ott 2020

Vedi su GitHub
 (1 commento) (0 reazioni) (0 assegnatari)Java (1911 fork)batch import
help wantedproposal

Metriche repository

Star
 (9070 star)
Metriche merge PR
 (Merge medio 2g 17h) (71 PR mergiate in 30 g)

Descrizione

The constructors for RetryableException were updated in #1039 to require the original Request object. In some cases the Request may contain sensitive information and never be used from the RetryableException, so it would be nice to have an option to create one without the Request to limit surface area.

Additionally, FeignException already exposes a hasRequest() method, so clients would be able to check whether RetryableException has a Request before attempting to access it.

I'd be more than happy to open a PR if this sounds like a reasonable use case. Thanks!

Guida contributor