Display the code passed to UaaException in UaaException.getMessage()
还没有人认领这个 Issue。
评估
调研方向
从 issue 中显示的 UaaException 构造函数开始,然后检查 AbstractCloudFoundryException 的其他具体子类,包括 ClientV2Exception、Clientv3Exception 和 UnknownCloudFoundryException。确认异常消息以一致的方式公开状态码,以已经正确的类作为参考,并使用项目现有的测试验证由此产生的行为。
由索引模型根据 Issue 内容生成。
描述
Make the logging more informative for the developer. Change simply the code from
public UaaException(Integer statusCode, String error, String errorDescription) {
super(statusCode, String.format("%s: %s", error, errorDescription));
this.error = error;
...
to
public UaaException(Integer statusCode, String error, String errorDescription) {
super(statusCode, String.format("%s: %s [%s]", error, errorDescription, statusCode));
this.error = error;
...
This will avoid painful debugging and work around.
Do the same for the other concrete classes extending AbstractCloudFoundryException aka ClientV2Exception (seems good), Clientv3Exception (seems good), UnknownCloudFoundryException (to fix)
- 主要语言
- Java
- 星标
- 334
- 派生
- 319
- PR 合并指标
- 30 天内没有已合并 PR
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
cloudfoundry/cf-java-client 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 68/100
cloudfoundry/cf-java-client#1374 ·
-
Integration tests fail: test-service-broker.jar incompatible with java-buildpack v5 (JDK 17 default) 未关闭
难度 2/5 半天 新手友好度 74/100
cloudfoundry/cf-java-client#1344 · 1 条评论 ·
-
难度 5/5 一周以上 新手友好度 15/100
cloudfoundry/cf-java-client#1373 ·
-
难度 3/5 1-2 天 新手友好度 55/100
cloudfoundry/cf-java-client#1370 ·
-
难度 4/5 3-5 天 新手友好度 45/100
cloudfoundry/cf-java-client#1367 ·
查看 cloudfoundry/cf-java-client 的全部 Issue
相似的 Issue
-
area/plugin
难度 2/5 1-3 小时 新手友好度 75/100
kestra-io/plugin-kestra#190 ·
-
难度 2/5 1-3 小时 新手友好度 70/100
google-ai-edge/LiteRT-LM#3739 ·
-
bug
难度 2/5 1-3 小时 新手友好度 75/100
-
难度 2/5 1-3 小时 新手友好度 75/100
integra-team-red/meet-map#249 ·
-
[Studio][Bug] Cancelled create-user dialog keeps the password and admin switch for the next attempt 未关闭
难度 2/5 1-3 小时 新手友好度 75/100
apache/rocketmq-dashboard#5064 ·