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

Function Error

grpc/status/status.go:10–12  ·  view source on GitHub ↗
(c codes.Code, msg string)

Source from the content-addressed store, hash-verified

8)
9
10func Error(c codes.Code, msg string) error {
11 return extgrpc.WrapWithGrpcCode(errors.New(msg), c)
12}
13
14func Errorf(c codes.Code, format string, args ...interface{}) error {
15 return extgrpc.WrapWithGrpcCode(errors.Newf(format, args...), c)

Callers 1

EchoMethod · 0.92

Calls 2

WrapWithGrpcCodeFunction · 0.92
NewFunction · 0.92

Tested by 1

EchoMethod · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…