IsResourceExhausted returns whether the given error is of type ResourceExhausted.
(err error)
| 102 | |
| 103 | // IsResourceExhausted returns whether the given error is of type ResourceExhausted. |
| 104 | func IsResourceExhausted(err error) bool { return HasCode(err, uint32(codes.ResourceExhausted)) } |
| 105 | |
| 106 | // IsFailedPrecondition returns whether the given error is of type FailedPrecondition. |
| 107 | func IsFailedPrecondition(err error) bool { return HasCode(err, uint32(codes.FailedPrecondition)) } |