Skip to content

Commit cd244ff

Browse files
Update docstring for ApplicationError
Co-authored-by: Dan Davison <[email protected]>
1 parent f40030b commit cd244ff

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

temporalio/exceptions.py

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -99,18 +99,10 @@ def __init__(
9999

100100

101101
class ApplicationError(FailureError):
102-
"""Error raised during workflow/activity execution.
102+
"""Error raised during workflow/activity execution to cause a workflow execution failure.
103103
104-
Can be raised in a Workflow to fail the Workflow Execution.
105-
Workflow Execution Failures put the Workflow Execution into the "Failed" state and no more attempts will
106-
be made in progressing their execution.
107-
108-
If you are creating custom exceptions or raising typical Python-based
109-
exceptions you would either need to extend this class or
110-
explicitly state that the exception is a Workflow Execution Failure by raising a new ``ApplicationError``.
111-
112-
Any exception that does not extend this exception
113-
is considered a Workflow Task Failure. These types of failures will cause the Workflow Task to be retried.
104+
Workflow Execution Failures put the Workflow Execution into the "Failed" state and no further attempt will
105+
be made to progress their execution.
114106
115107
# Example
116108

0 commit comments

Comments
 (0)