IsDeadlineExceeded returns whether the givenerror is context.DeadlineExceeded or of type DeadlineExceeded.
(err error)
| 88 | |
| 89 | // IsDeadlineExceeded returns whether the givenerror is context.DeadlineExceeded or of type DeadlineExceeded. |
| 90 | func IsDeadlineExceeded(err error) bool { |
| 91 | return HasCode(err, uint32(codes.DeadlineExceeded)) |
| 92 | } |
| 93 | |
| 94 | // IsNotFound returns whether the given error is of type NotFound. |
| 95 | func IsNotFound(err error) bool { return HasCode(err, uint32(codes.NotFound)) } |