()
| 356 | } |
| 357 | |
| 358 | func (e *InterruptedError) Error() string { |
| 359 | if e == nil || e.iface == nil { |
| 360 | return "<nil>" |
| 361 | } |
| 362 | var b bytes.Buffer |
| 363 | b.WriteString(fmt.Sprint(e.iface)) |
| 364 | e.writeShortStack(&b) |
| 365 | return b.String() |
| 366 | } |
| 367 | |
| 368 | func (e *Exception) writeFullStack(b *bytes.Buffer) { |
| 369 | for _, frame := range e.stack { |