Azure / Azure/azure-functions-durable-python
Specific Exceptions instead of generic Exception raised in DurableOrchestrationClient
未关闭
Enhancement
fixed-in-v2
P2
- 主要语言
- Python
- 星标
- 157
- 派生
- 70
- 平均合并
- 2 天 10 小时
- 30 天内合并 PR
- 2
描述
💡 **Feature description**
All the errors in DurableOrchestrationClient are raised with `raise Exception(message)`, even when it's a known case. Can we have more specific Exceptions that we can except specifically?
Also, it would be great to handle all the exceptions that can be returned instead of just the most common ones.
💭 **Describe alternatives you've considered**
`if "xxx" in str(e):...`
贡献指南
调研方向
首先检查 DurableOrchestrationClient,列出所有引发通用 Exception 的位置,以及每个操作可能返回的错误响应。在更改行为之前,定义具体的异常类别并完成处理覆盖;完成的标准是调用方无需匹配消息文本即可捕获已知故障。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- python
- 领域
- api, backend
- Issue 类型
- 功能
- 难度
- 5/5
- 预计耗时
- 一周以上
- 活跃度
- 冷清
- 描述清晰度
- 需要澄清
- 新手友好度
- 38/100