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時間
- マージ済み PR(30日)
- 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
- 見積もり時間
- 1週間以上
- 活発さ
- 静か
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 38/100