\brief Return a new Status copying the existing status, but updating with the existing detail.
| 351 | /// \brief Return a new Status copying the existing status, but |
| 352 | /// updating with the existing detail. |
| 353 | Status WithDetail(std::shared_ptr<StatusDetail> new_detail) const { |
| 354 | return Status(code(), message(), std::move(new_detail)); |
| 355 | } |
| 356 | |
| 357 | /// \brief Return a new Status with changed message, copying the |
| 358 | /// existing status code and detail. |