Returns a string based on the mode.
Declared in <absl/status/status.h>
std::string
ToString(StatusToStringMode mode = StatusToStringMode::kDefault) const;
By default, it returns combination of the error code name, the message and any associated payload messages. This string is designed simply to be human readable and its exact format should not be load bearing. Do not depend on the exact format of the result of ToString() which is subject to change.
The printed code name and the message are generally substrings of the result, and the payloads to be printed use the status payload printer mechanism (which is internal).
A human-readable representation of the status.
| Name | Description |
|---|---|
| mode | Controls which extra data is included in the output. |