Azure / Azure/azure-functions-durable-python
Handling custom exception type from activities
Open
Enhancement
fixed-in-v2
P2
- Dominant language
- Python
- Stars
- 157
- Forks
- 70
- Avg merge
- 2d 10h
- Merged PRs (30d)
- 2
Description
I would like to understand if it is possible to handle custom exception type (from activities) inside the orchestrator function.
E.g.:
Activity
```python
raise MyException(custom_data={...})
```
Orchestrator:
```python
try:
res = yield context.call_activity("Activity", data)
except MyException as me:
print(me.custom_data)
```
The actual behaviour is that in the orchestrator function I only get the generic Exception type and I cannot differentiate the handle logic based on custom_data.
Contributor guide
Assessment
This issue has not been assessed yet.