MCPcopy
hub / github.com/shadow1ng/fscan / NewProxyError

Function NewProxyError

common/proxy/types.go:128–135  ·  view source on GitHub ↗

NewProxyError 创建代理错误

(errType, message string, code int, cause error)

Source from the content-addressed store, hash-verified

126
127// NewProxyError 创建代理错误
128func NewProxyError(errType, message string, code int, cause error) *ProxyError {
129 return &ProxyError{
130 Type: errType,
131 Message: message,
132 Code: code,
133 Cause: cause,
134 }
135}
136
137// 预定义错误类型已迁移到constants.go

Callers 10

TestNewProxyErrorFunction · 0.85
DialContextMethod · 0.85
sendConnectRequestMethod · 0.85
DialTLSContextMethod · 0.85
GetDialerMethod · 0.85
UpdateConfigMethod · 0.85
createSOCKS5DialerMethod · 0.85
DialContextMethod · 0.85
DialContextMethod · 0.85

Calls

no outgoing calls

Tested by 2

TestNewProxyErrorFunction · 0.68