failure_converter.go ×5

Frontier kind: Code frontier

unlabeled · c_971047f9784f

24 tests · 26 LOC · 1 file · introduces 0 tests · 23 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
5 ranges23 lines · 1 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
7 ranges26 lines · 1 file · Browse complete extent
All tests (intent)
24 testsBrowse complete intent

Neighbourhood graph

The orange circle is the focus. Violet and green circles are every ancestor and descendant, broader and narrower, at any distance; blue squares and pink diamonds are the introduced files and exact introduced tests of every visible concept, not only the focus's. Arrows point from broader to narrower concepts and bridge only concepts omitted from this view. Undirected links show source or test introduction. Concept and file size follows LOC; exact test nodes use test-count units.

Introduced files, introduced tests, and structurally relevant concept specialization

In the embedded map, ordinary wheel input scrolls the page; use the visible controls to zoom and drag to pan. Open the full-screen map for canvas navigation: wheel pans, Ctrl/Command plus wheel zooms, and arrow keys pan when this region is focused. On touch screens, open the full-screen map to pan or pinch. If JavaScript or WebGL is unavailable, use the native relationship evidence on this page.

Introduced files, introduced tests, and structurally relevant concept specializationtask_handler_helpers.go ×3 · 6 introduced LOCtask_handler_helpers.go …invocation.go ×1 · 4 introduced LOCinvocation.go ×1retryable-http-error · 0 introduced LOCretryable-http-erroroperation_tasks.go ×2 · 13 introduced LOCoperation_tasks.go ×2invocable_outbound.go ×1 · 1 introduced LOCinvocable_outbound.go ×1invocable_outbound.go ×2 · 4 introduced LOCinvocable_outbound.go ×2task_handler_helpers.go ×2 · 4 introduced LOCtask_handler_helpers.go …executors.go ×1 · 4 introduced LOCexecutors.go ×1task_handler_helpers.go ×4 · 6 introduced LOCtask_handler_helpers.go …transient_error · 0 introduced LOCtransient_errorfailure · 0 introduced LOCfailureexecutors.go ×1 · 2 introduced LOCexecutors.go ×1transient_error · 0 introduced LOCtransient_errorfailure · 0 introduced LOCfailuretask_handler_helpers.go ×2 · 3 introduced LOCtask_handler_helpers.go …executors.go ×1 · 5 introduced LOCexecutors.go ×1executors.go ×1 · 3 introduced LOCexecutors.go ×1executors.go ×1 · 4 introduced LOCexecutors.go ×1executors.go ×2 · 3 introduced LOCexecutors.go ×2executors.go ×1 · 6 introduced LOCexecutors.go ×1invocation.go ×1 · 4 introduced LOCinvocation.go ×1retryable-error · 0 introduced LOCretryable-errornexus_invocation.go ×1 · 1 introduced LOCnexus_invocation.go ×1nexus_invocation.go ×2 · 4 introduced LOCnexus_invocation.go ×2executors.go ×1 · 3 introduced LOCexecutors.go ×1executors.go ×1 · 3 introduced LOCexecutors.go ×1executors.go ×4 · 6 introduced LOCexecutors.go ×4cancellation_tasks.go ×1 · 9 introduced LOCcancellation_tasks.go ×1task_handler_helpers.go ×1 · 2 introduced LOCtask_handler_helpers.go …task_handler_helpers.go ×1 · 3 introduced LOCtask_handler_helpers.go …task_handler_helpers.go ×4 · 6 introduced LOCtask_handler_helpers.go …failure_converter.go ×1 · 1 introduced LOCfailure_converter.go ×1handle.go ×1 · 5 introduced LOChandle.go ×1nexus_operation_http_handler.go ×3 · 20 introduced LOCnexus_operation_http_han…nexus_operation_http_handler.go ×1 · 2 introduced LOCnexus_operation_http_han…nexus_operation_http_handler.go ×1 · 2 introduced LOCnexus_operation_http_han…nexus_operation_http_handler.go ×4 · 13 introduced LOCnexus_operation_http_han…server.go ×1 · 2 introduced LOCserver.go ×1nexus_operation_http_handler.go ×4 · 22 introduced LOCnexus_operation_http_han…client.go ×4 · 14 introduced LOCclient.go ×4client.go ×1 · 4 introduced LOCclient.go ×1completion.go ×1 · 2 introduced LOCcompletion.go ×1server.go ×1 · 2 introduced LOCserver.go ×1completion.go ×2 · 3 introduced LOCcompletion.go ×2client.go ×1 · 2 introduced LOCclient.go ×1failure_converter.go ×2 · 4 introduced LOCfailure_converter.go ×2failure_converter.go ×1 · 5 introduced LOCfailure_converter.go ×1failure_converter.go ×1 · 2 introduced LOCfailure_converter.go ×1failure_converter.go ×1 · 2 introduced LOCfailure_converter.go ×1failure_converter.go ×1 · 1 introduced LOCfailure_converter.go ×1failure_converter.go ×2 · 3 introduced LOCfailure_converter.go ×2failure_converter.go ×4 · 15 introduced LOCfailure_converter.go ×4failure_converter.go ×1 · 1 introduced LOCfailure_converter.go ×1failure_converter.go ×1 · 3 introduced LOCfailure_converter.go ×1failure_converter.go ×2 · 3 introduced LOCfailure_converter.go ×2TestOperatorServiceMetadata, TestWorkflowServiceMetadata · 0 introduced LOCTestOperatorServiceMetad…go.temporal.io/server/chasm/lib/callback/invocable_outbound.go · 110 LOCcallback/invocable_outbo…go.temporal.io/server/chasm/lib/nexusoperation/cancellation_tasks.go · 232 LOCnexusoperation/cancellat…go.temporal.io/server/chasm/lib/nexusoperation/invocation.go · 295 LOCnexusoperation/invocatio…go.temporal.io/server/chasm/lib/nexusoperation/operation_tasks.go · 413 LOCnexusoperation/operation…go.temporal.io/server/chasm/lib/nexusoperation/task_handler_base.go · 207 LOCnexusoperation/task_hand…go.temporal.io/server/chasm/lib/nexusoperation/task_handler_helpers.go · 380 LOCnexusoperation/task_hand…go.temporal.io/server/common/nexus/nexusrpc/api.go · 295 LOCnexusrpc/api.gogo.temporal.io/server/common/nexus/nexusrpc/client.go · 502 LOCnexusrpc/client.gogo.temporal.io/server/common/nexus/nexusrpc/completion.go · 327 LOCnexusrpc/completion.gogo.temporal.io/server/common/nexus/nexusrpc/failure_converter.go · 213 LOCnexusrpc/failure_convert…go.temporal.io/server/common/nexus/nexusrpc/handle.go · 49 LOCnexusrpc/handle.gogo.temporal.io/server/common/nexus/nexusrpc/server.go · 404 LOCnexusrpc/server.gogo.temporal.io/server/components/callbacks/nexus_invocation.go · 111 LOCcallbacks/nexus_invocati…go.temporal.io/server/components/nexusoperations/executors.go · 1250 LOCnexusoperations/executor…go.temporal.io/server/service/frontend/nexus_operation_http_handler.go · 319 LOCfrontend/nexus_operation…non-retryable-http-error · introduced test · go.temporal.io/server/chasm/lib/callback/TestExecuteInvocationTaskNexus_Outcomes/non-retryable-http-errornon-retryable-http-errorretryable-http-error · introduced test · go.temporal.io/server/chasm/lib/callback/TestExecuteInvocationTaskNexus_Outcomes/retryable-http-errorretryable-http-errorendpoint_not_found · introduced test · go.temporal.io/server/chasm/lib/nexusoperation/TestCancellationInvocationTaskHandler_HTTP/endpoint_not_foundendpoint_not_foundfailure · introduced test · go.temporal.io/server/chasm/lib/nexusoperation/TestCancellationInvocationTaskHandler_HTTP/failurefailuretransient_error · introduced test · go.temporal.io/server/chasm/lib/nexusoperation/TestCancellationInvocationTaskHandler_HTTP/transient_errortransient_errorchasm_processor_error · introduced test · go.temporal.io/server/chasm/lib/nexusoperation/TestCancellationInvocationTaskHandler_SystemEndpoint/chasm_processor_errorchasm_processor_errorendpoint_not_found · introduced test · go.temporal.io/server/chasm/lib/nexusoperation/TestInvocationTaskHandler_HTTP/endpoint_not_foundendpoint_not_foundtransient_error · introduced test · go.temporal.io/server/chasm/lib/nexusoperation/TestInvocationTaskHandler_HTTP/transient_errortransient_errorchasm_processor_error · introduced test · go.temporal.io/server/chasm/lib/nexusoperation/TestInvocationTaskHandler_SystemEndpoint/chasm_processor_errorchasm_processor_errorTestOperatorServiceMetadata · introduced test · go.temporal.io/server/common/api/TestOperatorServiceMetadataTestOperatorServiceMetad…TestWorkflowServiceMetadata · introduced test · go.temporal.io/server/common/api/TestWorkflowServiceMetadataTestWorkflowServiceMetad…TestBadRequestCompletion · introduced test · go.temporal.io/server/common/nexus/nexusrpc/TestBadRequestCompletionTestBadRequestCompletionTestFailureConverter_HandlerError · introduced test · go.temporal.io/server/common/nexus/nexusrpc/TestFailureConverter_HandlerErrorTestFailureConverter_Han…TestFailureConverter_HandlerErrorRetryBehavior · introduced test · go.temporal.io/server/common/nexus/nexusrpc/TestFailureConverter_HandlerErrorRetryBehaviorTestFailureConverter_Han…TestHandlerErrorRetryBehavior · introduced test · go.temporal.io/server/common/nexus/nexusrpc/TestHandlerErrorRetryBehaviorTestHandlerErrorRetryBeh…non-retryable-error · introduced test · go.temporal.io/server/components/callbacks/TestProcessInvocationTaskNexus_Outcomes/non-retryable-errornon-retryable-errorretryable-error · introduced test · go.temporal.io/server/components/callbacks/TestProcessInvocationTaskNexus_Outcomes/retryable-errorretryable-errorendpoint_not_found · introduced test · go.temporal.io/server/components/nexusoperations/TestProcessCancelationTask/endpoint_not_foundendpoint_not_foundfailure · introduced test · go.temporal.io/server/components/nexusoperations/TestProcessCancelationTask/failurefailuretransient_error · introduced test · go.temporal.io/server/components/nexusoperations/TestProcessCancelationTask/transient_errortransient_errorendpoint_not_found · introduced test · go.temporal.io/server/components/nexusoperations/TestProcessInvocationTask/endpoint_not_foundendpoint_not_foundendpoint_not_found_on_command_processing · introduced test · go.temporal.io/server/components/nexusoperations/TestProcessInvocationTask/endpoint_not_found_on_command_processingendpoint_not_found_on_co…transient_error · introduced test · go.temporal.io/server/components/nexusoperations/TestProcessInvocationTask/transient_errortransient_errorTestDispatchNexusTaskByEndpoint_NamespaceNotFound_Retryable · introduced test · go.temporal.io/server/service/frontend/TestDispatchNexusTaskByEndpoint_NamespaceNotFound_RetryableTestDispatchNexusTaskByE…TestDispatchNexusTaskByEndpoint_NotFound_NonRetryable · introduced test · go.temporal.io/server/service/frontend/TestDispatchNexusTaskByEndpoint_NotFound_NonRetryableTestDispatchNexusTaskByE…TestDispatchNexusTaskByEndpoint_NotFound_Retryable · introduced test · go.temporal.io/server/service/frontend/TestDispatchNexusTaskByEndpoint_NotFound_RetryableTestDispatchNexusTaskByE…Focused concept · failure_converter.go ×5 · 23 introduced LOCfailure_converter.go ×5

Graph controls are ready.

Interactive rendering requires JavaScript and WebGL. Use the native relationship evidence on this page while the interactive map is unavailable.

Native relationship evidence

Every exact file and test below is linked only from the concept that introduces it.

Introduced tests

Every collected test enters the hierarchy at exactly one concept.

No tests are introduced at this concept. Its intent tests are introduced by other concepts.

Introduced code

Every collected source range enters the hierarchy at exactly one concept.

1 file ranked by introduced lines: 23 introduced LOC across 5 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

go.temporal.io/server/common/nexus/nexusrpc/failure_converter.go 23 introduced LOC · 5 ranges

Open complete file

65 }
66 return f, nil
67 > case *nexus.HandlerError: failure_converter.go
68 > if typedErr.OriginalFailure != nil {
69 return *typedErr.OriginalFailure, nil
70 }
71 > data := serializedHandlerError{ failure_converter.go
72 > Type: string(typedErr.Type),
73 > RetryableOverride: retryBehaviorAsOptionalBool(typedErr),
74 > }
75 > var details []byte
76 > details, err := json.Marshal(data)
77 > if err != nil {
78 return nexus.Failure{}, err
79 }
80 > f := nexus.Failure{ failure_converter.go
81 > Message: typedErr.Message,
82 > StackTrace: typedErr.StackTrace,
83 > Metadata: map[string]string{
84 > "type": "nexus.HandlerError",
85 > },
86 > Details: details,
87 > }
88 >
89 > if typedErr.Cause != nil {
90 c, err := e.ErrorToFailure(typedErr.Cause)
91 if err != nil {
94 f.Cause = &c
95 }
96 > return f, nil failure_converter.go
97 case *nexus.OperationError:
98 if typedErr.OriginalFailure != nil {
200 }
201
202 > func retryBehaviorAsOptionalBool(e *nexus.HandlerError) *bool { failure_converter.go
203 > // nolint:exhaustive // this is a simple optional boolean.
204 > switch e.RetryBehavior {
205 case nexus.HandlerErrorRetryBehaviorRetryable:
206 ret := true