MCPcopy
hub / github.com/grpc/grpc-go / GRPCStatus

Method GRPCStatus

status/status_test.go:159–165  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

157}
158
159func (c customError) GRPCStatus() *Status {
160 return status.FromProto(&spb.Status{
161 Code: int32(c.Code),
162 Message: c.Message,
163 Details: c.Details,
164 })
165}
166
167func (s) TestFromErrorImplementsInterface(t *testing.T) {
168 code, message := codes.Internal, "test description"

Callers

nothing calls this directly

Calls 1

FromProtoFunction · 0.92

Tested by

no test coverage detected