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

Method FullName

pkg/errors/definitions.go:69–82  ·  view source on GitHub ↗

FullName returns the full name (namespace:name) of the error.

()

Source from the content-addressed store, hash-verified

67
68// FullName returns the full name (namespace:name) of the error.
69func (d *Definition) FullName() string {
70 if d == nil {
71 return ""
72 }
73 namespace := d.namespace
74 if namespace == "" {
75 namespace = "unknown"
76 }
77 name := d.name
78 if name == "" {
79 name = "unknown"
80 }
81 return fmt.Sprintf("%s:%s", namespace, name)
82}
83
84// MessageFormat of the error.
85func (d *Definition) MessageFormat() string {

Callers 2

StringMethod · 0.95
defineFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected