MCPcopy Create free account
hub / github.com/devfile/devworkspace-operator / WrapSyncError

Function WrapSyncError

pkg/dwerrors/errors.go:77–88  ·  view source on GitHub ↗
(err error)

Source from the content-addressed store, hash-verified

75}
76
77func WrapSyncError(err error) error {
78 switch syncErr := err.(type) {
79 case *sync.NotInSyncError:
80 return &RetryError{Err: syncErr}
81 case *sync.UnrecoverableSyncError:
82 return &FailError{Err: syncErr}
83 case *sync.WarningError:
84 return &WarningError{Message: syncErr.Error()}
85 default:
86 return err
87 }
88}

Callers 11

SyncServiceAccountFunction · 0.92
ProvisionSshAskPassFunction · 0.92
SyncDeploymentToClusterFunction · 0.92
SyncRoutingToClusterFunction · 0.92
syncRolesFunction · 0.92
runCommonPVCCleanupJobFunction · 0.92

Calls 1

ErrorMethod · 0.45

Tested by

no test coverage detected