StatusErrorCheck returns whether or not err was caused by a StatusError and if it matches one of the optional status codes.
(err error, matchStatusCodes ...int)
| 66 | // StatusErrorCheck returns whether or not err was caused by a StatusError and if it matches one of the |
| 67 | // optional status codes. |
| 68 | func StatusErrorCheck(err error, matchStatusCodes ...int) bool { |
| 69 | _, found := StatusErrorMatch(err, matchStatusCodes...) |
| 70 | return found |
| 71 | } |
searching dependent graphs…