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

Function DefineUnauthenticated

pkg/errors/definitions.go:318–321  ·  view source on GitHub ↗

DefineUnauthenticated defines a registered error of type Unauthenticated. It should be used when a client attempts to perform an authenticated action without providing any form of authentication. If the client attempts to perform the action using incorrect credentials or credentials with insufficien

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

Source from the content-addressed store, hash-verified

316// If the client attempts to perform the action using incorrect credentials
317// or credentials with insufficient rights, PermissionDenied should be used instead.
318func DefineUnauthenticated(name, messageFormat string, publicAttributes ...string) *Definition {
319 def := define(uint32(codes.Unauthenticated), name, messageFormat, publicAttributes...)
320 return def
321}
322
323// New returns a new error from the definition. This is not required, but will
324// add a stack trace for improved debugging.

Callers 15

util_test.goFile · 0.92
auth_info.goFile · 0.92
cluster.goFile · 0.92
errors.goFile · 0.92
gatewayserver.goFile · 0.92
ws.goFile · 0.92
storage.goFile · 0.92
update_info.goFile · 0.92
errors.goFile · 0.92
request.goFile · 0.92
TestCodesFunction · 0.92

Calls 1

defineFunction · 0.85

Tested by 1

TestCodesFunction · 0.74