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

Function DefineNotFound

pkg/errors/definitions.go:239–242  ·  view source on GitHub ↗

DefineNotFound defines a registered error of type NotFound.

(name, messageFormat string, publicAttributes ...string)

Source from the content-addressed store, hash-verified

237
238// DefineNotFound defines a registered error of type NotFound.
239func DefineNotFound(name, messageFormat string, publicAttributes ...string) *Definition {
240 def := define(uint32(codes.NotFound), name, messageFormat, publicAttributes...)
241 return def
242}
243
244// DefineAlreadyExists defines a registered error of type AlreadyExists.
245func DefineAlreadyExists(name, messageFormat string, publicAttributes ...string) *Definition {

Callers 15

errors.goFile · 0.92
mac.goFile · 0.92
cryptoutil.goFile · 0.92
task_queue.goFile · 0.92
subscriptions.goFile · 0.92
errors.goFile · 0.92
util_test.goFile · 0.92
ttjs.goFile · 0.92
TestErrorsFunction · 0.92
grpc_gspba.goFile · 0.92

Calls 1

defineFunction · 0.85

Tested by 5

TestErrorsFunction · 0.74
TestGetAppSKeyFunction · 0.74
TestCodesFunction · 0.74
ExampleFunction · 0.74