MCPcopy
hub / github.com/docker/compose / IsNotFoundError

Function IsNotFoundError

pkg/api/errors.go:51–53  ·  pkg/api/errors.go::IsNotFoundError

IsNotFoundError returns true if the unwrapped error is ErrNotFound

(err error)

Source from the content-addressed store, hash-verified

49
50// IsNotFoundError returns true if the unwrapped error is ErrNotFound
51func IsNotFoundError(err error) bool {
52 return errors.Is(err, ErrNotFound)
53}
54
55// IsAlreadyExistsError returns true if the unwrapped error is ErrAlreadyExists
56func IsAlreadyExistsError(err error) bool {

Callers 4

NewGraphFunction · 0.92
RemoveMethod · 0.92
TestIsNotFoundFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestIsNotFoundFunction · 0.68