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