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

Function NewNotValid

errortypes.go:294–299  ·  view source on GitHub ↗

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

(err error, msg string)

Source from the content-addressed store, hash-verified

292// NewNotValid returns an error which wraps err and satisfies Is(err, NotValid)
293// and the Locationer interface.
294func NewNotValid(err error, msg string) error {
295 return &errWithType{
296 error: newLocationError(wrapErrorWithMsg(err, msg), 1),
297 errType: NotValid,
298 }
299}
300
301// Deprecated: IsNotValid reports whether err is a NotValid error. Use
302// Is(err, NotValid).

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…