NewNotValid returns an error which wraps err and satisfies Is(err, NotValid) and the Locationer interface.
(err error, msg string)
| 292 | // NewNotValid returns an error which wraps err and satisfies Is(err, NotValid) |
| 293 | // and the Locationer interface. |
| 294 | func 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). |
nothing calls this directly
no test coverage detected
searching dependent graphs…