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

Struct Definition

pkg/errors/definitions.go:30–39  ·  view source on GitHub ↗

Definition of a registered error.

Source from the content-addressed store, hash-verified

28
29// Definition of a registered error.
30type Definition struct {
31 namespace string
32 name string
33 messageFormat string
34 messageFormatArguments []string
35 parsedMessageFormat *messageformat.MessageFormat
36 publicAttributes []string
37 code uint32 // 0 is invalid; so implies Unknown (code 2)
38 grpcStatus *status.Status
39}
40
41// DefinitionInterface is the interface of an error definition.
42type DefinitionInterface interface {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected