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

Function Errorf

status/status.go:63–65  ·  status/status.go::Errorf

Errorf returns Error(c, fmt.Sprintf(format, a...)).

(c codes.Code, format string, a ...any)

Source from the content-addressed store, hash-verified

61
62// Errorf returns Error(c, fmt.Sprintf(format, a...)).
63func Errorf(c codes.Code, format string, a ...any) error {
64 return Error(c, fmt.Sprintf(format, a...))
65}
66
67// ErrorProto returns an error representing s. If s.Code is OK, returns nil.
68func ErrorProto(s *spb.Status) error {

Callers 15

sendResponseMethod · 0.92
processUnaryRPCMethod · 0.92
processStreamingRPCMethod · 0.92
SetHeaderFunction · 0.92
SendHeaderFunction · 0.92
SetTrailerFunction · 0.92
EncodeMethod · 0.92
newClientStreamFunction · 0.92
SendMsgMethod · 0.92
recvMsgMethod · 0.92
newNonRetryClientStreamFunction · 0.92

Calls 1

ErrorFunction · 0.70