Skip to content

Commit 4a3f3dd

Browse files
committed
doc: improve a bit error_handling.md
Signed-off-by: Yves Bastide <yves@botify.com>
1 parent d1eca99 commit 4a3f3dd

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

docs/src/features/error_handling.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,14 @@ The `TaskFailureContext` currently have these members:
2626
* task_name: activity or workflow name
2727
* exception_class: `TaskException` or `WorkflowException`
2828
* exception: raised exception (shortcut to future.exception); None for unfinished tasks
29+
30+
For a TaskFailed exception:
31+
* reason: `TaskFailed.reason`
32+
* details: `TaskFailed.details` dict
33+
* task_error: name of the inner exception
34+
* task_error_type: class of the inner exception
35+
* task_message: exception message
2936
* retry_count: current retry count (0 for first retry)
30-
* task_error: for a TaskFailed exception, name of the inner exception if available
31-
* reason: `TaskFailed.reason` or `str(exception)`
32-
* details: `TaskFailed.details` or None
3337
* future: failed future
3438
* event: quite opaque dict, experimental
3539
* history: History object, experimental

0 commit comments

Comments
 (0)