IsInternal returns whether the given error is of type Internal.
(err error)
| 114 | |
| 115 | // IsInternal returns whether the given error is of type Internal. |
| 116 | func IsInternal(err error) bool { return HasCode(err, uint32(codes.Internal)) } |
| 117 | |
| 118 | // IsUnavailable returns whether the given error is of type Unavailable. |
| 119 | func IsUnavailable(err error) bool { return HasCode(err, uint32(codes.Unavailable)) } |