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