MCPcopy Create free account
hub / github.com/juju/errors / NewNotFound

Function NewNotFound

errortypes.go:150–155  ·  view source on GitHub ↗

NewNotFound returns an error which wraps err and satisfies Is(err, NotFound) and the Locationer interface.

(err error, msg string)

Source from the content-addressed store, hash-verified

148// NewNotFound returns an error which wraps err and satisfies Is(err, NotFound)
149// and the Locationer interface.
150func NewNotFound(err error, msg string) error {
151 return &errWithType{
152 error: newLocationError(wrapErrorWithMsg(err, msg), 1),
153 errType: NotFound,
154 }
155}
156
157// Deprecated: IsNotFound reports whether err is a NotFound error. Use
158// Is(err, NotFound).

Callers

nothing calls this directly

Calls 2

newLocationErrorFunction · 0.85
wrapErrorWithMsgFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…