(err error, c ErrorClass)
| 297 | } |
| 298 | |
| 299 | func IsErrorClass(err error, c ErrorClass) bool { |
| 300 | if err == nil { |
| 301 | return false |
| 302 | } |
| 303 | if gitError, ok := err.(*GitError); ok { |
| 304 | return gitError.Class == c |
| 305 | } |
| 306 | return false |
| 307 | } |
| 308 | |
| 309 | func IsErrorCode(err error, c ErrorCode) bool { |
| 310 | if err == nil { |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…