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

Function IsDeadlineExceeded

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

IsDeadlineExceeded returns whether the givenerror is context.DeadlineExceeded or of type DeadlineExceeded.

(err error)

Source from the content-addressed store, hash-verified

88
89// IsDeadlineExceeded returns whether the givenerror is context.DeadlineExceeded or of type DeadlineExceeded.
90func IsDeadlineExceeded(err error) bool {
91 return HasCode(err, uint32(codes.DeadlineExceeded))
92}
93
94// IsNotFound returns whether the given error is of type NotFound.
95func IsNotFound(err error) bool { return HasCode(err, uint32(codes.NotFound)) }

Callers 10

setMethod · 0.92
FrontendFunction · 0.92
retryableUplinkErrorFunction · 0.92
TestCodesFunction · 0.92
TestRunTimeoutFunction · 0.92
TestPopTaskFunction · 0.92
TestMutexFunction · 0.92
TestApplicationServerFunction · 0.92

Calls 1

HasCodeFunction · 0.85

Tested by 6

TestCodesFunction · 0.74
TestRunTimeoutFunction · 0.74
TestPopTaskFunction · 0.74
TestMutexFunction · 0.74
TestApplicationServerFunction · 0.74