MCPcopy
hub / github.com/lxc/incus / StatusErrorCheck

Function StatusErrorCheck

shared/api/error.go:68–71  ·  view source on GitHub ↗

StatusErrorCheck returns whether or not err was caused by a StatusError and if it matches one of the optional status codes.

(err error, matchStatusCodes ...int)

Source from the content-addressed store, hash-verified

66// StatusErrorCheck returns whether or not err was caused by a StatusError and if it matches one of the
67// optional status codes.
68func StatusErrorCheck(err error, matchStatusCodes ...int) bool {
69 _, found := StatusErrorMatch(err, matchStatusCodes...)
70 return found
71}

Callers 15

queryOperationMethod · 0.92
CreateMethod · 0.92
CreateBucketMethod · 0.92
DeleteMethod · 0.92
doneMethod · 0.92
deviceDetachPathMethod · 0.92
deviceDetachUSBMethod · 0.92
devicesAddMethod · 0.92
IsNotFoundErrorFunction · 0.92

Calls 1

StatusErrorMatchFunction · 0.85

Used in the wild real call sites across dependent graphs

searching dependent graphs…