Skip to content

Commit 9189a16

Browse files
committed
Cleanup
1 parent 07ca831 commit 9189a16

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

tests/nexus/test_workflow_caller_error_chains.py

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,15 @@ def action_in_nexus_operation():
246246
# If a nexus handler raises an OperationError, the calling workflow
247247
# should see a non-retryable exception.
248248
#
249-
# The Java handler sends NexusTaskCompleted containing
249+
# Given Java operation code
250+
#
251+
# throw OperationException.failure(
252+
# ApplicationFailure.newNonRetryableFailureWithCause(
253+
# "application-error-message",
254+
# "application-error-type",
255+
# new MyCustomException("Custom error 2")));
256+
#
257+
# the Java handler sends NexusTaskCompleted containing
250258
#
251259
# temporalio.api.nexus.v1.UnsuccessfulOperationError(FAILED, failure={
252260
# message: "application-error-message",
@@ -282,13 +290,6 @@ class RaiseNexusOperationErrorFromApplicationErrorNonRetryableFromCustomError(
282290
):
283291
@staticmethod
284292
def action_in_nexus_operation():
285-
# case RAISE_NEXUS_OPERATION_ERROR_WITH_CAUSE_OF_CUSTOM_ERROR:
286-
# throw OperationException.failure(
287-
# ApplicationFailure.newNonRetryableFailureWithCause(
288-
# "application-error-message",
289-
# "application-error-type",
290-
# new MyCustomException("Custom error 2")));
291-
292293
try:
293294
try:
294295
raise CustomError("custom-error-message")

0 commit comments

Comments
 (0)