MCPcopy
hub / github.com/connectrpc/connect-go / Code

Method Code

error.go:215–217  ·  view source on GitHub ↗

Code returns the error's status code.

()

Source from the content-addressed store, hash-verified

213
214// Code returns the error's status code.
215func (e *Error) Code() Code {
216 return e.code
217}
218
219// Details returns the error's details.
220func (e *Error) Details() []*ErrorDetail {

Callers 13

TestErrorNilUnderlyingFunction · 0.95
TestServerFunction · 0.95
TestFailCodecFunction · 0.95
TestContextErrorFunction · 0.95
TestBidiRequiresHTTP2Function · 0.95
grpcStatusForErrorFunction · 0.80
CodeOfFunction · 0.80
newConnectWireErrorFunction · 0.80

Calls

no outgoing calls

Tested by 10

TestErrorNilUnderlyingFunction · 0.76
TestServerFunction · 0.76
TestFailCodecFunction · 0.76
TestContextErrorFunction · 0.76
TestBidiRequiresHTTP2Function · 0.76
TestErrorCodeFunction · 0.64