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

Function NewNotAssigned

errortypes.go:342–347  ·  view source on GitHub ↗

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

(err error, msg string)

Source from the content-addressed store, hash-verified

340// NewNotAssigned returns an error which wraps err and satisfies
341// Is(err, NotAssigned) and the Locationer interface.
342func NewNotAssigned(err error, msg string) error {
343 return &errWithType{
344 error: newLocationError(wrapErrorWithMsg(err, msg), 1),
345 errType: NotAssigned,
346 }
347}
348
349// Deprecated: IsNotAssigned reports whether err is a NotAssigned error.
350// Use Is(err, NotAssigned)

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…