MCPcopy
hub / github.com/rclone/rclone / IsFatalError

Function IsFatalError

fs/fserrors/error.go:131–140  ·  view source on GitHub ↗

IsFatalError returns true if err conforms to the Fatal interface and calling the Fatal method returns true.

(err error)

Source from the content-addressed store, hash-verified

129// IsFatalError returns true if err conforms to the Fatal interface
130// and calling the Fatal method returns true.
131func IsFatalError(err error) (isFatal bool) {
132 liberrors.Walk(err, func(err error) bool {
133 if r, ok := err.(Fataler); ok {
134 isFatal = r.Fatal()
135 return true
136 }
137 return false
138 })
139 return
140}
141
142// NoRetrier is an optional interface for error as to whether the
143// operation should not be retried at a high level.

Callers 8

resolveExitCodeFunction · 0.92
ErrorMethod · 0.92
TestAccountMaxTransferFunction · 0.92
processErrorMethod · 0.92
processErrorMethod · 0.92
TestSyncOverlapFunction · 0.92
DeleteFilesWithBackupDirFunction · 0.92

Calls 2

WalkMethod · 0.80
FatalMethod · 0.65

Tested by 4

TestAccountMaxTransferFunction · 0.74
processErrorMethod · 0.74
TestSyncOverlapFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…