Returns the associated explanatory string.

Synopsis

Declared in <absl/status/statusor.h>

virtual
char const*
what() const noexcept override;

Description

Returns the associated explanatory string of the absl::StatusOr<T> object's error code. This function contains information about the failing status, but its exact formatting may change and should not be depended on.

The pointer of this string is guaranteed to be valid until any non‐const function is invoked on the exception object.

Return Value

A null‐terminated explanatory string owned by this object.

Created with MrDocs