Azure / Azure/azure-functions-durable-python
Specific Exceptions instead of generic Exception raised in DurableOrchestrationClient
Open
Enhancement
fixed-in-v2
P2
- Dominant language
- Python
- Stars
- 157
- Forks
- 70
- Avg merge
- 2d 10h
- Merged PRs (30d)
- 2
Description
💡 **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):...`
Contributor guide
Assessment
This issue has not been assessed yet.