OpenFeign/feign

RetryableException requires Request

开放

#1,296 创建于 2020年10月27日

 (1 条评论) (0 个反应) (0 位负责人)Java (1,911 个派生)batch import
help wantedproposal

仓库指标

星标
 (9,070 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

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!

贡献者指南