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

Method Code

pkg/errors/definitions.go:94–99  ·  view source on GitHub ↗

Code of the error. This code is consistent with google.golang.org/genproto/googleapis/rpc/code and google.golang.org/grpc/codes.

()

Source from the content-addressed store, hash-verified

92// Code of the error.
93// This code is consistent with google.golang.org/genproto/googleapis/rpc/code and google.golang.org/grpc/codes.
94func (d *Definition) Code() uint32 {
95 if d == nil {
96 return 0
97 }
98 return d.code
99}
100
101func (d *Definition) String() string {
102 if d == nil {

Callers 1

setGRPCStatusMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected