func google.golang.org/grpc/status.New
31 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#L911: return status.New(codes.Internal, "grpc: compressed flag set with identity or empty encoding")
server.go#L95: var statusOK = status.New(codes.OK, "")
server.go#L1525: if err := stream.WriteStatus(status.New(codes.Unimplemented, errDesc)); err != nil {
server.go#L1614: if err := stream.WriteStatus(status.New(codes.Unimplemented, errDesc)); err != nil {
google.golang.org/grpc/internal/transport
client_stream.go#L76: return status.New(s.nonGRPCStatus.Code(), msg)
http2_client.go#L1101: st = status.New(codes.Unavailable, err.Error())
http2_client.go#L1263: t.closeStream(s, io.EOF, true, http2.ErrCodeFlowControl, status.New(codes.Internal, err.Error()), nil, false)
http2_client.go#L1306: t.closeStream(s, io.EOF, rstStream, http2.ErrCodeNo, status.New(codes.Internal, "server closed the stream without sending trailers"), nil, true)
http2_client.go#L1520: st := status.New(codes.Internal, "a HEADERS frame cannot appear in the middle of a stream")
http2_client.go#L1528: se := status.New(codes.Internal, "peer header list size exceeded limit")
http2_client.go#L1575: se := status.New(codes.Unknown, fmt.Sprintf("transport: malformed grpc-status: %v", err))
http2_client.go#L1610: se := status.New(grpcErrorCode, fmt.Sprintf("transport: malformed http-status: %v", err))
http2_client.go#L1616: se := status.New(codes.Internal, fmt.Sprintf(
http2_client.go#L1643: se := status.New(grpcErrorCode, strings.Join(errs, "; "))
http2_client.go#L1654: se := status.New(codes.Internal, headerError)
http2_client.go#L1779: t.closeStream(s, status.Error(code, msg), true, http2.ErrCodeProtocol, status.New(code, msg), nil, false)
http2_server.go#L489: t.writeEarlyAbort(streamID, s.contentSubtype, status.New(codes.Internal, errMsg), http.StatusBadRequest, !frame.StreamEnded())
http2_server.go#L527: t.writeEarlyAbort(streamID, s.contentSubtype, status.New(codes.Internal, "no host or :authority header present"), http.StatusBadRequest, !frame.StreamEnded())
http2_server.go#L568: t.writeEarlyAbort(streamID, s.contentSubtype, status.New(codes.Internal, errMsg), http.StatusMethodNotAllowed, !frame.StreamEnded())
http2_server.go#L581: stat = status.New(codes.PermissionDenied, err.Error())
http2_server.go#L590: st := status.New(codes.DeadlineExceeded, context.DeadlineExceeded.Error())
transport.go#L838: statusGoAway = status.New(codes.Unavailable, "the stream is rejected because server is draining the connection")