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

Function IsNotFound

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

IsNotFound returns whether the given error is of type NotFound.

(err error)

Source from the content-addressed store, hash-verified

93
94// IsNotFound returns whether the given error is of type NotFound.
95func IsNotFound(err error) bool { return HasCode(err, uint32(codes.NotFound)) }
96
97// IsAlreadyExists returns whether the given error is of type AlreadyExists.
98func IsAlreadyExists(err error) bool { return HasCode(err, uint32(codes.AlreadyExists)) }

Callers 15

TestMemKeyVaultFunction · 0.92
TestGetPhyVersionsFunction · 0.92
TestListBandsFunction · 0.92
ClaimMethod · 0.92
TestUpstreamFunction · 0.92
TestTTJSFunction · 0.92
UnclaimMethod · 0.92
claimTTIV1GatewayMethod · 0.92
UpdateGatewayMethod · 0.92
GetInfoMethod · 0.92
RegisterMethod · 0.92
handleUplinkMessageMethod · 0.92

Calls 1

HasCodeFunction · 0.85

Tested by 15

TestMemKeyVaultFunction · 0.74
TestGetPhyVersionsFunction · 0.74
TestListBandsFunction · 0.74
TestUpstreamFunction · 0.74
TestTTJSFunction · 0.74
TestGetAppSKeyFunction · 0.74
TestDeviceRegistryGetFunction · 0.74
TestDeviceRegistryDeleteFunction · 0.74
handleDeviceRegistryTestFunction · 0.74
handleKeyRegistryTestFunction · 0.74
TestUpdateVersionInfoFunction · 0.74