failure_converter.go ×2

Frontier kind: Code frontier

unlabeled · c_cd3e78b91dcb

42 tests · 3 LOC · 1 file · introduces 0 tests · 3 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
2 ranges3 lines · 1 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
2 ranges3 lines · 1 file · Browse complete extent
All tests (intent)
42 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 ×3task_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 ×2executors.go ×1 · 4 introduced LOCexecutors.go ×1sync_failed · 0 introduced LOCsync_failedinvocable_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 …invocable_internal.go ×3 · 15 introduced LOCinvocable_internal.go ×3transient_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 ×1chasm_invocation.go ×3 · 15 introduced LOCchasm_invocation.go ×3task_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 ×4request_response.pb.go ×1 · 5 introduced LOCrequest_response.pb.go ×…TestFromOperationCanceledError · 0 introduced LOCTestFromOperationCancele…TestFromOperationFailedError · 0 introduced LOCTestFromOperationFailedE…failure.go ×1 · 4 introduced LOCfailure.go ×1failure.go ×1 · 8 introduced LOCfailure.go ×1failure.go ×3 · 9 introduced LOCfailure.go ×3client.go ×1 · 4 introduced LOCclient.go ×1client.go ×4 · 16 introduced LOCclient.go ×4completion.go ×1 · 3 introduced LOCcompletion.go ×1client.go ×4 · 16 introduced LOCclient.go ×4completion.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 · 2 introduced LOCfailure_converter.go ×1failure_converter.go ×1 · 2 introduced LOCfailure_converter.go ×1failure_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 ×3 · 12 introduced LOCfailure_converter.go ×3failure_converter.go ×4 · 6 introduced LOCfailure_converter.go ×4failure_converter.go ×2 · 3 introduced LOCfailure_converter.go ×2TestDefaultFailureConverterFailureError · 0 introduced LOCTestDefaultFailureConver…failure_converter.go ×1 · 1 introduced LOCfailure_converter.go ×1failure_converter.go ×1 · 3 introduced LOCfailure_converter.go ×1failure_converter.go ×5 · 23 introduced LOCfailure_converter.go ×5failure_converter.go ×1 · 4 introduced LOCfailure_converter.go ×1failure_converter.go ×4 · 18 introduced LOCfailure_converter.go ×4failure_converter.go ×2 · 3 introduced LOCfailure_converter.go ×2failure_converter.go ×1 · 1 introduced LOCfailure_converter.go ×1failure_converter.go ×2 · 7 introduced LOCfailure_converter.go ×2failure_converter.go ×1 · 2 introduced LOCfailure_converter.go ×1TestOperatorServiceMetadata, 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/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.go · 713 LOCnexusoperation/operation…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/failure.go · 441 LOCnexus/failure.gogo.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/chasm_invocation.go · 162 LOCcallbacks/chasm_invocati…go.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…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…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_foundsync_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_failedtransient_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…TestFromOperationCanceledError · introduced test · go.temporal.io/server/common/nexus/TestFromOperationCanceledErrorTestFromOperationCancele…TestFromOperationFailedError · introduced test · go.temporal.io/server/common/nexus/TestFromOperationFailedErrorTestFromOperationFailedE…TestBadRequestCompletion · introduced test · go.temporal.io/server/common/nexus/nexusrpc/TestBadRequestCompletionTestBadRequestCompletionTestDefaultFailureConverterArbitraryError · introduced test · go.temporal.io/server/common/nexus/nexusrpc/TestDefaultFailureConverterArbitraryErrorTestDefaultFailureConver…TestDefaultFailureConverterFailureError · introduced test · go.temporal.io/server/common/nexus/nexusrpc/TestDefaultFailureConverterFailureErrorTestDefaultFailureConver…TestFailureCompletion · introduced test · go.temporal.io/server/common/nexus/nexusrpc/TestFailureCompletionTestFailureCompletionTestFailureConverter_FailureError · introduced test · go.temporal.io/server/common/nexus/nexusrpc/TestFailureConverter_FailureErrorTestFailureConverter_Fai…TestFailureConverter_GenericError · introduced test · go.temporal.io/server/common/nexus/nexusrpc/TestFailureConverter_GenericErrorTestFailureConverter_Gen…TestFailureConverter_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…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…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…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_failedtransient_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…cancelation · 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 · 3 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: 3 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 3 introduced LOC · 2 ranges

Open complete file

46 // ErrorToFailure implements FailureConverter.
47 // nolint:revive // Keeping all of the logic together for readability, even if it means the function is long.
48 > func (e knownErrorFailureConverter) ErrorToFailure(err error) (nexus.Failure, error) { failure_converter.go
49 > if err == nil {
50 return nexus.Failure{}, nil
51 }
52 // NOTE: not using errors.Unwrap here we are intentionally only supporting unwrapping known errors.
53 > switch typedErr := err.(type) { failure_converter.go
54 case *nexus.FailureError:
55 f := typedErr.Failure