Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/go-dev-frame/sponge
/ Code
Method
Code
pkg/errcode/http_error.go:74–76 ·
view source on GitHub ↗
Code get error code
()
Source
from the content-addressed store, hash-verified
72
73
// Code get error code
74
func
(e *Error) Code() int {
75
return
e.code
76
}
77
78
// Msg get error code message
79
func
(e *Error) Msg() string {
Callers
15
WithOutMsgI18n
Method · 0.95
ToHTTPCode
Method · 0.95
TestNewError
Function · 0.95
runResponseHTTPServer
Function · 0.45
TestRespond
Function · 0.45
Error
Function · 0.45
UnaryClientLog
Function · 0.45
StreamClientLog
Function · 0.45
logging.go
File · 0.45
UnaryServerLog
Function · 0.45
UnaryServerSimpleLog
Function · 0.45
StreamServerLog
Function · 0.45
Calls
no outgoing calls
Tested by
11
TestNewError
Function · 0.76
runResponseHTTPServer
Function · 0.36
TestRespond
Function · 0.36
TestUnaryClientLog
Function · 0.36
TestParseCodeAndMsgError
Function · 0.36
BenchmarkName
Function · 0.36
TestParseError
Function · 0.36
TestGetErrorCode
Function · 0.36
TestRPCStatus
Function · 0.36
TestConvertToHTTPCode
Function · 0.36
TestGetStatusCode
Function · 0.36