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

Function IsAlreadyExists

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

IsAlreadyExists returns whether the given error is of type AlreadyExists.

(err error)

Source from the content-addressed store, hash-verified

96
97// IsAlreadyExists returns whether the given error is of type AlreadyExists.
98func IsAlreadyExists(err error) bool { return HasCode(err, uint32(codes.AlreadyExists)) }
99
100// IsPermissionDenied returns whether the given error is of type PermissionDenied.
101func IsPermissionDenied(err error) bool { return HasCode(err, uint32(codes.PermissionDenied)) }

Callers 15

handleUplinkMessageMethod · 0.92
handleDeviceRegistryTestFunction · 0.92
relayLoopbackFuncFunction · 0.92
TestCodesFunction · 0.92
createEndDeviceMethod · 0.92
createGatewayMethod · 0.92

Calls 1

HasCodeFunction · 0.85

Tested by 7

handleDeviceRegistryTestFunction · 0.74
TestCodesFunction · 0.74
TestInvitationsCRUDFunction · 0.74