IsNotFound returns whether the given error is of type NotFound.
(err error)
| 93 | |
| 94 | // IsNotFound returns whether the given error is of type NotFound. |
| 95 | func IsNotFound(err error) bool { return HasCode(err, uint32(codes.NotFound)) } |
| 96 | |
| 97 | // IsAlreadyExists returns whether the given error is of type AlreadyExists. |
| 98 | func IsAlreadyExists(err error) bool { return HasCode(err, uint32(codes.AlreadyExists)) } |