isNetworkError checks if an error is a network-related error
(err error)
| 327 | |
| 328 | // isNetworkError checks if an error is a network-related error |
| 329 | func isNetworkError(err error) bool { |
| 330 | if err == nil { |
| 331 | return false |
| 332 | } |
| 333 | |
| 334 | // Check for net.Error interface (standard way to detect network errors) |
| 335 | _, ok := err.(net.Error) |
| 336 | return ok |
| 337 | } |
| 338 | |
| 339 | // isTimeoutError checks if an error is a timeout error |
| 340 | func isTimeoutError(err error) bool { |
no outgoing calls
no test coverage detected