MCPcopy Index your code
hub / github.com/DoNewsCode/core / GRPCStatus

Method GRPCStatus

unierr/error.go:124–126  ·  view source on GitHub ↗

GRPCStatus produces a native gRPC status.

()

Source from the content-addressed store, hash-verified

122
123// GRPCStatus produces a native gRPC status.
124func (e *Error) GRPCStatus() *status.Status {
125 return status.New(e.code, e.Error())
126}
127
128// FromStatus constructs the Error from a gRPC status.
129func FromStatus(s *status.Status) *Error {

Callers 5

ExampleFunction · 0.80
ExampleError_GRPCStatusFunction · 0.80
TestWrapFunction · 0.80

Calls 1

ErrorMethod · 0.95

Tested by 5

ExampleFunction · 0.64
ExampleError_GRPCStatusFunction · 0.64
TestWrapFunction · 0.64