IsAlreadyExists returns whether the given error is of type AlreadyExists.
(err error)
| 96 | |
| 97 | // IsAlreadyExists returns whether the given error is of type AlreadyExists. |
| 98 | func IsAlreadyExists(err error) bool { return HasCode(err, uint32(codes.AlreadyExists)) } |
| 99 | |
| 100 | // IsPermissionDenied returns whether the given error is of type PermissionDenied. |
| 101 | func IsPermissionDenied(err error) bool { return HasCode(err, uint32(codes.PermissionDenied)) } |