MCPcopy Create free account
hub / github.com/bluekeyes/patch2pr / IsUnsupported

Function IsUnsupported

error.go:33–38  ·  view source on GitHub ↗

IsUnsupported returns true if err is the result of trying an unsupported operation. It is equivalent to finding the first error in err's chain that implements type unsupported interface { Unsupported() bool } and then calling the Unsupported() method.

(err error)

Source from the content-addressed store, hash-verified

31//
32// and then calling the Unsupported() method.
33func IsUnsupported(err error) bool {
34 var u interface {
35 Unsupported() bool
36 }
37 return errors.As(err, &u) && u.Unsupported()
38}

Callers 1

runGraphQLPatchTestFunction · 0.85

Calls 1

UnsupportedMethod · 0.80

Tested by 1

runGraphQLPatchTestFunction · 0.68