|
| 1 | +// The MIT License |
| 2 | +// |
| 3 | +// Copyright (c) 2025 Temporal Technologies Inc. All rights reserved. |
| 4 | +// |
| 5 | +// Permission is hereby granted, free of charge, to any person obtaining a copy |
| 6 | +// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
| 7 | +// copies of the Software, and to permit persons to whom the Software is |
| 8 | +// furnished to do so, subject to the following conditions: |
| 9 | +// |
| 10 | +// The above copyright notice and this permission notice shall be included in |
| 11 | +// all copies or substantial portions of the Software. |
| 12 | +// |
| 13 | +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| 14 | +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 15 | +// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
| 16 | +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
| 17 | +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
| 18 | +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN |
| 19 | +// THE SOFTWARE. |
| 20 | + |
| 21 | +syntax = "proto3"; |
| 22 | + |
| 23 | +package temporal.api.enums.v1; |
| 24 | + |
| 25 | +option go_package = "go.temporal.io/api/enums/v1;enums"; |
| 26 | +option java_package = "io.temporal.api.enums.v1"; |
| 27 | +option java_multiple_files = true; |
| 28 | +option java_outer_classname = "NexusProto"; |
| 29 | +option ruby_package = "Temporalio::Api::Enums::V1"; |
| 30 | +option csharp_namespace = "Temporalio.Api.Enums.V1"; |
| 31 | + |
| 32 | +// NexusHandlerErrorRetryBehavior allows nexus handlers to explicity set the retry behavior of a HandlerError. If not |
| 33 | +// specified, retry behavior is determined from the error type. For example internal errors are not retryable by default |
| 34 | +// unless specified otherwise. |
| 35 | +enum NexusHandlerErrorRetryBehavior { |
| 36 | + NEXUS_HANDLER_ERROR_RETRY_BEHAVIOR_UNSPECIFIED = 0; |
| 37 | + // A handler error is explicitly marked as retryable. |
| 38 | + NEXUS_HANDLER_ERROR_RETRY_BEHAVIOR_RETRYABLE = 1; |
| 39 | + // A handler error is explicitly marked as non-retryable. |
| 40 | + NEXUS_HANDLER_ERROR_RETRY_BEHAVIOR_NON_RETRYABLE = 2; |
| 41 | +} |
| 42 | + |
0 commit comments