Azure / Azure/azure-functions-durable-python

Specific Exceptions instead of generic Exception raised in DurableOrchestrationClient

Open
#579 1 comment 1 reaction 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.