MCPcopy Create free account
hub / github.com/cloudwego/netpoll / Is

Method Is

connection_errors.go:78–90  ·  view source on GitHub ↗
(target error)

Source from the content-addressed store, hash-verified

76}
77
78func (e *exception) Is(target error) bool {
79 if e == target {
80 return true
81 }
82 if e.no == target {
83 return true
84 }
85 // TODO: ErrConnClosed contains ErrEOF
86 if e.no == ErrEOF && target == ErrConnClosed {
87 return true
88 }
89 return e.no.Is(target)
90}
91
92func (e *exception) Unwrap() error {
93 return e.no

Callers 12

TestZCEOFFunction · 0.80
handlerMethod · 0.80
TestOnConnectFunction · 0.80
TestServerReadAndCloseFunction · 0.80
TestClientWriteAndCloseFunction · 0.80
TestErrnoFunction · 0.80
TestConnectionTimeoutFunction · 0.80
TestConnectionUntilFunction · 0.80
WaitMethod · 0.80
TestEpollETCloseFunction · 0.80

Calls

no outgoing calls

Tested by 10

TestZCEOFFunction · 0.64
TestOnConnectFunction · 0.64
TestServerReadAndCloseFunction · 0.64
TestClientWriteAndCloseFunction · 0.64
TestErrnoFunction · 0.64
TestConnectionTimeoutFunction · 0.64
TestConnectionUntilFunction · 0.64
TestEpollETCloseFunction · 0.64