func google.golang.org/grpc/status.New
28 uses
google.golang.org/grpc/status (current package)
status.go#L48: func New(c codes.Code, msg string) *Status {
status.go#L54: return New(c, fmt.Sprintf(format, a...))
status.go#L59: return New(c, msg).Err()
status.go#L108: return New(codes.Unknown, err.Error()), false
status.go#L120: return New(codes.Unknown, err.Error()), false
status.go#L126: return New(codes.Unknown, err.Error()), false
status.go#L156: return New(codes.DeadlineExceeded, err.Error())
status.go#L159: return New(codes.Canceled, err.Error())
status.go#L161: return New(codes.Unknown, err.Error())
google.golang.org/grpc
rpc_util.go#L817: return status.New(codes.Internal, "grpc: compressed flag set with identity or empty encoding")
server.go#L92: var statusOK = status.New(codes.OK, "")
server.go#L1805: if err := stream.WriteStatus(status.New(codes.Unimplemented, errDesc)); err != nil {
server.go#L1865: if err := stream.WriteStatus(status.New(codes.Unimplemented, errDesc)); err != nil {
google.golang.org/grpc/internal/transport
http2_client.go#L1047: st = status.New(codes.Unavailable, err.Error())
http2_client.go#L1210: t.closeStream(s, io.EOF, true, http2.ErrCodeFlowControl, status.New(codes.Internal, err.Error()), nil, false)
http2_client.go#L1234: t.closeStream(s, io.EOF, false, http2.ErrCodeNo, status.New(codes.Internal, "server closed the stream without sending trailers"), nil, true)
http2_client.go#L1447: st := status.New(codes.Internal, "a HEADERS frame cannot appear in the middle of a stream")
http2_client.go#L1455: se := status.New(codes.Internal, "peer header list size exceeded limit")
http2_client.go#L1494: se := status.New(codes.Internal, fmt.Sprintf("transport: malformed grpc-status: %v", err))
http2_client.go#L1511: se := status.New(codes.Internal, fmt.Sprintf("transport: malformed http-status: %v", err))
http2_client.go#L1555: se := status.New(code, strings.Join(errs, "; "))
http2_client.go#L1561: se := status.New(codes.Internal, headerError)
http2_client.go#L1678: t.closeStream(s, status.Error(code, msg), true, http2.ErrCodeProtocol, status.New(code, msg), nil, false)
http2_server.go#L486: status: status.New(codes.Internal, errMsg),
http2_server.go#L576: status: status.New(codes.Internal, errMsg),
http2_server.go#L591: stat = status.New(codes.PermissionDenied, err.Error())
http2_server.go#L611: status: status.New(codes.DeadlineExceeded, context.DeadlineExceeded.Error()),
transport.go#L674: statusGoAway = status.New(codes.Unavailable, "the stream is rejected because server is draining the connection")