MCPcopy Create free account
hub / github.com/docker/compose / IsForbiddenError

Function IsForbiddenError

pkg/api/errors.go:61–63  ·  view source on GitHub ↗

IsForbiddenError returns true if the unwrapped error is ErrForbidden

(err error)

Source from the content-addressed store, hash-verified

59
60// IsForbiddenError returns true if the unwrapped error is ErrForbidden
61func IsForbiddenError(err error) bool {
62 return errors.Is(err, ErrForbidden)
63}
64
65// IsUnknownError returns true if the unwrapped error is ErrUnknown
66func IsUnknownError(err error) bool {

Callers 1

TestIsForbiddenFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestIsForbiddenFunction · 0.68