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

Function IsDataLoss

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

IsDataLoss returns whether the given error is of type DataLoss.

(err error)

Source from the content-addressed store, hash-verified

120
121// IsDataLoss returns whether the given error is of type DataLoss.
122func IsDataLoss(err error) bool { return HasCode(err, uint32(codes.DataLoss)) }
123
124// IsUnauthenticated returns whether the given error is of type Unauthenticated.
125func IsUnauthenticated(err error) bool { return HasCode(err, uint32(codes.Unauthenticated)) }

Callers 5

parseFunction · 0.92
TestCodesFunction · 0.92
TestStoreFunction · 0.92

Calls 1

HasCodeFunction · 0.85

Tested by 3

TestCodesFunction · 0.74
TestStoreFunction · 0.74