MCPcopy
hub / github.com/dapr/dapr / GRPCStatus

Method GRPCStatus

pkg/messages/api_error.go:85–87  ·  view source on GitHub ↗

GRPCStatus returns the gRPC status.Status object. This method allows APIError to comply with the interface expected by status.FromError().

()

Source from the content-addressed store, hash-verified

83// GRPCStatus returns the gRPC status.Status object.
84// This method allows APIError to comply with the interface expected by status.FromError().
85func (e APIError) GRPCStatus() *grpcStatus.Status {
86 return grpcStatus.New(e.grpcCode, e.Message())
87}
88
89// Error implements the error interface.
90func (e APIError) Error() string {

Callers 3

TestAPIError_GRPCStatusFunction · 0.95
GetStateMethod · 0.80
isPermissionDeniedFunction · 0.80

Calls 1

MessageMethod · 0.95

Tested by 1

TestAPIError_GRPCStatusFunction · 0.76