MCPcopy Index your code
hub / github.com/cloudwego/netpoll / Exception

Function Exception

connection_errors.go:46–55  ·  view source on GitHub ↗

wrap Errno, implement xerrors.Wrapper

(err error, suffix string)

Source from the content-addressed store, hash-verified

44
45// wrap Errno, implement xerrors.Wrapper
46func Exception(err error, suffix string) error {
47 no, ok := err.(syscall.Errno)
48 if !ok {
49 if suffix == "" {
50 return err
51 }
52 return fmt.Errorf("%s %s", err.Error(), suffix)
53 }
54 return &exception{no: no, suffix: suffix}
55}
56
57var _ net.Error = (*exception)(nil)
58

Callers 15

ioreadFunction · 0.85
SetDeadlineMethod · 0.85
SetReadDeadlineMethod · 0.85
SetWriteDeadlineMethod · 0.85
waitReadMethod · 0.85
CreateListenerFunction · 0.85
TestErrnoFunction · 0.85
registerMethod · 0.85
onHupMethod · 0.85
onCloseMethod · 0.85
MallocMethod · 0.85
FlushMethod · 0.85

Calls 1

ErrorMethod · 0.80

Tested by 1

TestErrnoFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…