(err error)
| 131 | } |
| 132 | |
| 133 | func SimpleMessageFromPossibleConnectionError(err error) string { |
| 134 | if err == nil { |
| 135 | return "" |
| 136 | } |
| 137 | if ce, ok := err.(ConnectionError); ok { |
| 138 | return ce.Err.Error() |
| 139 | } |
| 140 | return err.Error() |
| 141 | } |
| 142 | |
| 143 | func ClassifyConnError(err error) (string, string) { |
| 144 | code := utilds.GetErrorCode(err) |
no test coverage detected