IsFailedPrecondition returns whether the given error is of type FailedPrecondition.
(err error)
| 105 | |
| 106 | // IsFailedPrecondition returns whether the given error is of type FailedPrecondition. |
| 107 | func IsFailedPrecondition(err error) bool { return HasCode(err, uint32(codes.FailedPrecondition)) } |
| 108 | |
| 109 | // IsAborted returns whether the given error is of type Aborted. |
| 110 | func IsAborted(err error) bool { return HasCode(err, uint32(codes.Aborted)) } |