withGrpcCode wraps an error with a gRPC status code.
| 56 | |
| 57 | // withGrpcCode wraps an error with a gRPC status code. |
| 58 | type withGrpcCode struct { |
| 59 | cause error |
| 60 | code codes.Code |
| 61 | } |
| 62 | |
| 63 | // WrapWithGrpcCode wraps an error with a gRPC status code. |
| 64 | func WrapWithGrpcCode(err error, code codes.Code) error { |
nothing calls this directly
no outgoing calls
no test coverage detected