Hi Temporal Team,
We want to simplify and standardize our codes.
RetryOptions.DoNotRetry and ApplicationFailure.newNonRetryableFailure
Both will be able to throw non-retryable failure.
But is there any reason we need to use DoNotRetry, as ApplicationFailure.newNonRetryableFailure already provided a standard way of handling non-retryable failure, while in DoNotRetry we need to maintain a separate config for exception list.
So we can have a errorcode constant together with ApplicationFailure.newNonRetryableFailure and don’t use RetryOptions.DoNotRetry at all?