failure_converter.go ×2

Frontier kind: Code frontier

unlabeled · c_6bd0530b17a2

15 tests · 10 LOC · 1 file · introduces 0 tests · 7 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
2 ranges7 lines · 1 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
4 ranges10 lines · 1 file · Browse complete extent
All tests (intent)
15 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 specializationmutable_state_impl.go ×1 · 11 introduced LOCmutable_state_impl.go ×1mutable_state_impl.go ×1 · 6 introduced LOCmutable_state_impl.go ×1mutable_state_impl.go ×7 · 35 introduced LOCmutable_state_impl.go ×7operation.go ×2 · 6 introduced LOCoperation.go ×2sync_failed · 0 introduced LOCsync_failedmutable_state_impl.go ×3 · 15 introduced LOCmutable_state_impl.go ×3executors.go ×1 · 4 introduced LOCexecutors.go ×1sync_failed · 0 introduced LOCsync_failedinvocable_internal.go ×3 · 15 introduced LOCinvocable_internal.go ×3chasm_invocation.go ×3 · 15 introduced LOCchasm_invocation.go ×3request_response.pb.go ×1 · 5 introduced LOCrequest_response.pb.go ×…client.go ×1 · 4 introduced LOCclient.go ×1client.go ×4 · 16 introduced LOCclient.go ×4client.go ×4 · 16 introduced LOCclient.go ×4failure_converter.go ×2 · 4 introduced LOCfailure_converter.go ×2failure_converter.go ×1 · 2 introduced LOCfailure_converter.go ×1failure_converter.go ×1 · 2 introduced LOCfailure_converter.go ×1failure_converter.go ×2 · 3 introduced LOCfailure_converter.go ×2failure_converter.go ×4 · 6 introduced LOCfailure_converter.go ×4failure_converter.go ×2 · 3 introduced LOCfailure_converter.go ×2TestDefaultFailureConverterFailureError · 0 introduced LOCTestDefaultFailureConver…failure_converter.go ×2 · 3 introduced LOCfailure_converter.go ×2TestOperatorServiceMetadata, TestWorkflowServiceMetadata · 0 introduced LOCTestOperatorServiceMetad…go.temporal.io/server/api/historyservice/v1/request_response.pb.go · 12003 LOCv1/request_response.pb.g…go.temporal.io/server/chasm/lib/callback/invocable_internal.go · 184 LOCcallback/invocable_inter…go.temporal.io/server/chasm/lib/nexusoperation/operation.go · 713 LOCnexusoperation/operation…go.temporal.io/server/chasm/lib/nexusoperation/task_handler_helpers.go · 380 LOCnexusoperation/task_hand…go.temporal.io/server/common/nexus/nexusrpc/client.go · 502 LOCnexusrpc/client.gogo.temporal.io/server/common/nexus/nexusrpc/failure_converter.go · 213 LOCnexusrpc/failure_convert…go.temporal.io/server/common/nexus/nexusrpc/server.go · 404 LOCnexusrpc/server.gogo.temporal.io/server/components/callbacks/chasm_invocation.go · 162 LOCcallbacks/chasm_invocati…go.temporal.io/server/components/nexusoperations/executors.go · 1250 LOCnexusoperations/executor…go.temporal.io/server/service/history/workflow/mutable_state_impl.go · 9930 LOCworkflow/mutable_state_i…success-with-failed-operation · introduced test · go.temporal.io/server/chasm/lib/callback/TestExecuteInvocationTaskChasm_Outcomes/success-with-failed-operationsuccess-with-failed-oper…sync_canceled · introduced test · go.temporal.io/server/chasm/lib/nexusoperation/TestInvocationTaskHandler_HTTP/sync_canceledsync_canceledsync_failed · introduced test · go.temporal.io/server/chasm/lib/nexusoperation/TestInvocationTaskHandler_HTTP/sync_failedsync_failedTestOperatorServiceMetadata · introduced test · go.temporal.io/server/common/api/TestOperatorServiceMetadataTestOperatorServiceMetad…TestWorkflowServiceMetadata · introduced test · go.temporal.io/server/common/api/TestWorkflowServiceMetadataTestWorkflowServiceMetad…TestDefaultFailureConverterFailureError · introduced test · go.temporal.io/server/common/nexus/nexusrpc/TestDefaultFailureConverterFailureErrorTestDefaultFailureConver…TestFailureConverter_FailureError · introduced test · go.temporal.io/server/common/nexus/nexusrpc/TestFailureConverter_FailureErrorTestFailureConverter_Fai…TestFailureConverter_HandlerError · introduced test · go.temporal.io/server/common/nexus/nexusrpc/TestFailureConverter_HandlerErrorTestFailureConverter_Han…TestFailureConverter_OperationError · introduced test · go.temporal.io/server/common/nexus/nexusrpc/TestFailureConverter_OperationErrorTestFailureConverter_Ope…TestHandlerErrorRetryBehavior · introduced test · go.temporal.io/server/common/nexus/nexusrpc/TestHandlerErrorRetryBehaviorTestHandlerErrorRetryBeh…TestUnsuccessful · introduced test · go.temporal.io/server/common/nexus/nexusrpc/TestUnsuccessfulTestUnsuccessfulsuccess-with-failed-operation · introduced test · go.temporal.io/server/components/callbacks/TestProcessInvocationTaskChasm_Outcomes/success-with-failed-operationsuccess-with-failed-oper…sync_canceled · introduced test · go.temporal.io/server/components/nexusoperations/TestProcessInvocationTask/sync_canceledsync_canceledsync_failed · introduced test · go.temporal.io/server/components/nexusoperations/TestProcessInvocationTask/sync_failedsync_failedcancelation · introduced test · go.temporal.io/server/service/history/workflow/workflow_test/TestGetNexusCompletion/cancelationcancelationfailure · introduced test · go.temporal.io/server/service/history/workflow/workflow_test/TestGetNexusCompletion/failurefailuretermination · introduced test · go.temporal.io/server/service/history/workflow/workflow_test/TestGetNexusCompletion/terminationterminationFocused concept · failure_converter.go ×2 · 7 introduced LOCfailure_converter.go ×2

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: 7 introduced LOC across 2 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

go.temporal.io/server/common/nexus/nexusrpc/failure_converter.go 7 introduced LOC · 2 ranges

Open complete file

52 // NOTE: not using errors.Unwrap here we are intentionally only supporting unwrapping known errors.
53 switch typedErr := err.(type) {
54 > case *nexus.FailureError: failure_converter.go
55 > f := typedErr.Failure
56 > // FailureError is has both a Cause error and an underlying Failure Cause.
57 > // When instantiated directly, there are cases where only the Go error cause is set.
58 > // Preserve the embedded failure's cause, as the embedded failure is treated similarly to the OriginalFailure field for well-known other error types.
59 > if typedErr.Cause != nil && f.Cause == nil {
60 c, err := e.ErrorToFailure(typedErr.Cause)
61 if err != nil {
64 f.Cause = &c
65 }
66 > return f, nil failure_converter.go
67 case *nexus.HandlerError:
68 if typedErr.OriginalFailure != nil {