@@ -246,7 +246,15 @@ def action_in_nexus_operation():
246
246
# If a nexus handler raises an OperationError, the calling workflow
247
247
# should see a non-retryable exception.
248
248
#
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
250
258
#
251
259
# temporalio.api.nexus.v1.UnsuccessfulOperationError(FAILED, failure={
252
260
# message: "application-error-message",
@@ -282,13 +290,6 @@ class RaiseNexusOperationErrorFromApplicationErrorNonRetryableFromCustomError(
282
290
):
283
291
@staticmethod
284
292
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
-
292
293
try :
293
294
try :
294
295
raise CustomError ("custom-error-message" )
0 commit comments