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

Method Error

connection_errors.go:64–76  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

62}
63
64func (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
78func (e *exception) Is(target error) bool {
79 if e == target {

Callers 13

CloseMethod · 0.80
OnReadMethod · 0.80
handlerMethod · 0.80
TestGracefulExitFunction · 0.80
TestErrnoFunction · 0.80
registerMethod · 0.80
ExceptionFunction · 0.80
WaitMethod · 0.80
mockDialerEventLoopFunction · 0.80

Calls

no outgoing calls

Tested by 7

TestGracefulExitFunction · 0.64
TestErrnoFunction · 0.64
mockDialerEventLoopFunction · 0.64
mockDialerSendFunction · 0.64