alibaba / alibaba/Sentinel

[讨论] FlowException 和 DegradeException 的 detailMessage 为 null,是否可以适当优化

Open
#3,238 0 comments 0 reactions 0 assignees View on GitHub
kind/discussion
Dominant language
Java
Stars
23.1k
Forks
8.1k
PR merge metrics
No merged PRs in 30d

Description

## Issue Description

Type: *feature request*
**Sentinel 版本** : 2.0.0-alpha
**问题**:抛出的FlowException和DegradeException中,detailMessage为null,这里能够提供一些更有价值的信息,例如将resource、rule的摘要等填入其中
![image](https://github.com/alibaba/Sentinel/assets/53926693/25e628f8-5299-45f6-9f56-4de382e6e270)

### Describe what feature you want
完善FlowException和DegradeException的detailMessage

社区内是否对此有相关规划?

Contributor guide

Open the contributing guide

Research direction

Start by locating the FlowException and DegradeException definitions and the code that constructs or throws them. Review how resource and rule information is available at those points, then check the issue discussion for the intended message content. Done means both exceptions provide agreed, useful detailMessage values without losing existing behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.