GRPCStatus produces a native gRPC status.
()
| 122 | |
| 123 | // GRPCStatus produces a native gRPC status. |
| 124 | func (e *Error) GRPCStatus() *status.Status { |
| 125 | return status.New(e.code, e.Error()) |
| 126 | } |
| 127 | |
| 128 | // FromStatus constructs the Error from a gRPC status. |
| 129 | func FromStatus(s *status.Status) *Error { |