IsPermissionDenied returns whether the given error is of type PermissionDenied.
(err error)
| 99 | |
| 100 | // IsPermissionDenied returns whether the given error is of type PermissionDenied. |
| 101 | func IsPermissionDenied(err error) bool { return HasCode(err, uint32(codes.PermissionDenied)) } |
| 102 | |
| 103 | // IsResourceExhausted returns whether the given error is of type ResourceExhausted. |
| 104 | func IsResourceExhausted(err error) bool { return HasCode(err, uint32(codes.ResourceExhausted)) } |