IsUnknown returns whether the given error is of type Unknown.
(err error)
| 82 | |
| 83 | // IsUnknown returns whether the given error is of type Unknown. |
| 84 | func IsUnknown(err error) bool { return HasCode(err, uint32(codes.Unknown)) } |
| 85 | |
| 86 | // IsInvalidArgument returns whether the given error is of type InvalidArgument. |
| 87 | func IsInvalidArgument(err error) bool { return HasCode(err, uint32(codes.InvalidArgument)) } |