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)
| 316 | // If the client attempts to perform the action using incorrect credentials |
| 317 | // or credentials with insufficient rights, PermissionDenied should be used instead. |
| 318 | func 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. |