IsNotFound returns a boolean indicating whether the error is a not found error.
(err error)
| 225 | |
| 226 | // IsNotFound returns a boolean indicating whether the error is a not found error. |
| 227 | func IsNotFound(err error) bool { |
| 228 | if err == nil { |
| 229 | return false |
| 230 | } |
| 231 | var e *NotFoundError |
| 232 | return errors.As(err, &e) |
| 233 | } |
| 234 | |
| 235 | // MaskNotFound masks not found error. |
| 236 | func MaskNotFound(err error) error { |
no outgoing calls
no test coverage detected
searching dependent graphs…