MCPcopy
hub / github.com/rclone/rclone / IsNoRetryError

Function IsNoRetryError

fs/fserrors/error.go:181–190  ·  view source on GitHub ↗

IsNoRetryError returns true if err conforms to the NoRetry interface and calling the NoRetry method returns true.

(err error)

Source from the content-addressed store, hash-verified

179// IsNoRetryError returns true if err conforms to the NoRetry
180// interface and calling the NoRetry method returns true.
181func IsNoRetryError(err error) (isNoRetry bool) {
182 liberrors.Walk(err, func(err error) bool {
183 if r, ok := err.(NoRetrier); ok {
184 isNoRetry = r.NoRetry()
185 return true
186 }
187 return false
188 })
189 return
190}
191
192// NoLowLevelRetrier is an optional interface for error as to whether
193// the operation should not be retried at a low level.

Callers 4

resolveExitCodeFunction · 0.92
ErrorMethod · 0.92
processErrorMethod · 0.92
processErrorMethod · 0.92

Calls 2

WalkMethod · 0.80
NoRetryMethod · 0.65

Tested by 1

processErrorMethod · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…