IsNotFoundError returns true if the unwrapped error is ErrNotFound
(err error)
| 49 | |
| 50 | // IsNotFoundError returns true if the unwrapped error is ErrNotFound |
| 51 | func IsNotFoundError(err error) bool { |
| 52 | return errors.Is(err, ErrNotFound) |
| 53 | } |
| 54 | |
| 55 | // IsAlreadyExistsError returns true if the unwrapped error is ErrAlreadyExists |
| 56 | func IsAlreadyExistsError(err error) bool { |
no outgoing calls