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

Research direction

Start by inspecting DurableOrchestrationClient and cataloguing every place it raises generic Exception, along with the error responses each operation can return. Define the specific exception categories and complete handling coverage before changing behavior; done means callers can catch known failures without matching message text.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api, backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.