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

Function Errorf

grpc/status/status.go:14–16  ·  view source on GitHub ↗
(c codes.Code, format string, args ...interface{})

Source from the content-addressed store, hash-verified

12}
13
14func Errorf(c codes.Code, format string, args ...interface{}) error {
15 return extgrpc.WrapWithGrpcCode(errors.Newf(format, args...), c)
16}
17
18func WrapErr(c codes.Code, msg string, err error) error {
19 return extgrpc.WrapWithGrpcCode(errors.WrapWithDepth(1, err, msg), c)

Callers

nothing calls this directly

Calls 2

WrapWithGrpcCodeFunction · 0.92
NewfFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…