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