()
| 343 | } |
| 344 | |
| 345 | func (e *InterruptedError) String() string { |
| 346 | if e == nil { |
| 347 | return "<nil>" |
| 348 | } |
| 349 | var b bytes.Buffer |
| 350 | if e.iface != nil { |
| 351 | b.WriteString(fmt.Sprint(e.iface)) |
| 352 | b.WriteByte('\n') |
| 353 | } |
| 354 | e.writeFullStack(&b) |
| 355 | return b.String() |
| 356 | } |
| 357 | |
| 358 | func (e *InterruptedError) Error() string { |
| 359 | if e == nil || e.iface == nil { |
nothing calls this directly
no test coverage detected