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

Method New

pkg/errors/definitions.go:325–330  ·  view source on GitHub ↗

New returns a new error from the definition. This is not required, but will add a stack trace for improved debugging.

()

Source from the content-addressed store, hash-verified

323// New returns a new error from the definition. This is not required, but will
324// add a stack trace for improved debugging.
325func (d *Definition) New() *Error {
326 if d == nil {
327 return nil
328 }
329 return build(d, 0) // Don't refactor this to build(...).WithCause(...)
330}

Callers

nothing calls this directly

Calls 1

buildFunction · 0.85

Tested by

no test coverage detected