()
| 62 | } |
| 63 | |
| 64 | func (e *exception) Error() string { |
| 65 | var s string |
| 66 | if int(e.no)&0x100 != 0 { |
| 67 | s = errnos[int(e.no)&ErrnoMask] |
| 68 | } |
| 69 | if s == "" { |
| 70 | s = e.no.Error() |
| 71 | } |
| 72 | if e.suffix != "" { |
| 73 | s += " " + e.suffix |
| 74 | } |
| 75 | return s |
| 76 | } |
| 77 | |
| 78 | func (e *exception) Is(target error) bool { |
| 79 | if e == target { |
no outgoing calls