MCPcopy Index your code
hub / github.com/cockroachdb/errors / decodeWithGrpcCode

Function decodeWithGrpcCode

extgrpc/ext_grpc.go:117–122  ·  view source on GitHub ↗

it's a decodable error.

(
	_ context.Context, cause error, _ string, _ []string, payload proto.Message,
)

Source from the content-addressed store, hash-verified

115
116// it's a decodable error.
117func decodeWithGrpcCode(
118 _ context.Context, cause error, _ string, _ []string, payload proto.Message,
119) error {
120 wp := payload.(*EncodedGrpcCode)
121 return &withGrpcCode{cause: cause, code: codes.Code(wp.Code)}
122}
123
124// encodeGrpcStatus takes an error generated by a standard gRPC Status and
125// converts it into a GoGo Protobuf representation from

Callers

nothing calls this directly

Calls 1

CodeMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…