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

Method WithDetails

pkg/errors/details.go:37–44  ·  view source on GitHub ↗

WithDetails returns the error with the given details set. This appends to any existing details in the Error.

(details ...proto.Message)

Source from the content-addressed store, hash-verified

35// WithDetails returns the error with the given details set.
36// This appends to any existing details in the Error.
37func (e *Error) WithDetails(details ...proto.Message) *Error {
38 if e == nil {
39 return e
40 }
41 dup := *e
42 dup.addDetails(details...)
43 return &dup
44}
45
46// WithDetails returns a new error from the definition, and sets the given details.
47func (d *Definition) WithDetails(details ...proto.Message) *Error {

Callers 11

GRPCStatusMethod · 0.95
ScheduleDownlinkMethod · 0.45
ScheduleDownMethod · 0.45
TestProcessDownlinkTaskFunction · 0.45
parseFunction · 0.45
sendQueryMethod · 0.45
parseFunction · 0.45
shutdownFunction · 0.45
processMethod · 0.45

Calls 1

addDetailsMethod · 0.80

Tested by 1

TestProcessDownlinkTaskFunction · 0.36