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

Function IsResourceExhausted

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

IsResourceExhausted returns whether the given error is of type ResourceExhausted.

(err error)

Source from the content-addressed store, hash-verified

102
103// IsResourceExhausted returns whether the given error is of type ResourceExhausted.
104func IsResourceExhausted(err error) bool { return HasCode(err, uint32(codes.ResourceExhausted)) }
105
106// IsFailedPrecondition returns whether the given error is of type FailedPrecondition.
107func IsFailedPrecondition(err error) bool { return HasCode(err, uint32(codes.FailedPrecondition)) }

Callers 12

TestBlockingSchedulingFunction · 0.92
TestRateLimitingFirewallFunction · 0.92
filterPacketMethod · 0.92
TestRateLimitFunction · 0.92
retryableUplinkErrorFunction · 0.92
logRegistryRPCErrorFunction · 0.92
TestCodesFunction · 0.92
shouldSuppressErrorFunction · 0.92
TestGRPCFunction · 0.92
ConnectMethod · 0.92

Calls 1

HasCodeFunction · 0.85

Tested by 5

TestBlockingSchedulingFunction · 0.74
TestRateLimitingFirewallFunction · 0.74
TestRateLimitFunction · 0.74
TestCodesFunction · 0.74
TestGRPCFunction · 0.74