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

Function IsUnavailable

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

IsUnavailable returns whether the given error is of type Unavailable.

(err error)

Source from the content-addressed store, hash-verified

117
118// IsUnavailable returns whether the given error is of type Unavailable.
119func IsUnavailable(err error) bool { return HasCode(err, uint32(codes.Unavailable)) }
120
121// IsDataLoss returns whether the given error is of type DataLoss.
122func IsDataLoss(err error) bool { return HasCode(err, uint32(codes.DataLoss)) }

Callers 12

TestAccessFetcherFunction · 0.92
retryableUplinkErrorFunction · 0.92
TestCodesFunction · 0.92
TestNetErrorsFunction · 0.92
TestPopTaskFunction · 0.92
TestMutexFunction · 0.92
HandleUpMethod · 0.92

Calls 1

HasCodeFunction · 0.85

Tested by 8

TestAccessFetcherFunction · 0.74
TestCodesFunction · 0.74
TestNetErrorsFunction · 0.74
TestPopTaskFunction · 0.74
TestMutexFunction · 0.74