IsNotFound returns a boolean indicating whether the error is a not found error.
(err error)
| 243 | |
| 244 | // IsNotFound returns a boolean indicating whether the error is a not found error. |
| 245 | func IsNotFound(err error) bool { |
| 246 | if err == nil { |
| 247 | return false |
| 248 | } |
| 249 | var e *NotFoundError |
| 250 | return errors.As(err, &e) |
| 251 | } |
| 252 | |
| 253 | // MaskNotFound masks not found error. |
| 254 | func MaskNotFound(err error) error { |
no outgoing calls
no test coverage detected