(err error)
| 267 | } |
| 268 | |
| 269 | func (e *alertError) Is(err error) bool { |
| 270 | var other *alertError |
| 271 | if errors.As(err, &other) { |
| 272 | return e.Level == other.Level && e.Description == other.Description |
| 273 | } |
| 274 | |
| 275 | return false |
| 276 | } |
| 277 | |
| 278 | // netError translates an error from underlying Conn to corresponding net.Error. |
| 279 | func netError(err error) error { |
no outgoing calls