IsUnavailable returns whether the given error is of type Unavailable.
(err error)
| 117 | |
| 118 | // IsUnavailable returns whether the given error is of type Unavailable. |
| 119 | func IsUnavailable(err error) bool { return HasCode(err, uint32(codes.Unavailable)) } |
| 120 | |
| 121 | // IsDataLoss returns whether the given error is of type DataLoss. |
| 122 | func IsDataLoss(err error) bool { return HasCode(err, uint32(codes.DataLoss)) } |