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

Function NewUserNotFound

errortypes.go:174–179  ·  view source on GitHub ↗

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

(err error, msg string)

Source from the content-addressed store, hash-verified

172// NewUserNotFound returns an error which wraps err and satisfies
173// Is(err, UserNotFound) and the Locationer interface.
174func NewUserNotFound(err error, msg string) error {
175 return &errWithType{
176 error: newLocationError(wrapErrorWithMsg(err, msg), 1),
177 errType: UserNotFound,
178 }
179}
180
181// Deprecated: IsUserNotFound reports whether err is a UserNotFound error. Use
182// Is(err, UserNotFound).

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…