MCPcopy Create free account
hub / github.com/TheThingsNetwork/lorawan-stack / IsPermissionDenied

Function IsPermissionDenied

pkg/errors/codes.go:101–101  ·  view source on GitHub ↗

IsPermissionDenied returns whether the given error is of type PermissionDenied.

(err error)

Source from the content-addressed store, hash-verified

99
100// IsPermissionDenied returns whether the given error is of type PermissionDenied.
101func IsPermissionDenied(err error) bool { return HasCode(err, uint32(codes.PermissionDenied)) }
102
103// IsResourceExhausted returns whether the given error is of type ResourceExhausted.
104func IsResourceExhausted(err error) bool { return HasCode(err, uint32(codes.ResourceExhausted)) }

Callers 15

registerEntityRightsFunction · 0.92
registerAuthInfoFunction · 0.92
TestRequireFunction · 0.92
AuthInfoFunction · 0.92
ListApplicationFunction · 0.92
ListClientFunction · 0.92
ListGatewayFunction · 0.92
ListOrganizationFunction · 0.92
ListUserFunction · 0.92
JoinRequestMethod · 0.92
AppSKeyRequestMethod · 0.92

Calls 1

HasCodeFunction · 0.85