IsDataLoss returns whether the given error is of type DataLoss.
(err error)
| 120 | |
| 121 | // IsDataLoss returns whether the given error is of type DataLoss. |
| 122 | func IsDataLoss(err error) bool { return HasCode(err, uint32(codes.DataLoss)) } |
| 123 | |
| 124 | // IsUnauthenticated returns whether the given error is of type Unauthenticated. |
| 125 | func IsUnauthenticated(err error) bool { return HasCode(err, uint32(codes.Unauthenticated)) } |