[#absl-BadStatusOrAccess-what]
= xref:absl.adoc[absl]::xref:absl/BadStatusOrAccess.adoc[BadStatusOrAccess]::what
:relfileprefix: ../../
:mrdocs:

Returns the associated explanatory string&period;

== Synopsis

Declared in `&lt;absl&sol;status&sol;statusor&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
virtual
char const*
what() const noexcept override;
----

== Description

Returns the associated explanatory string of the `absl&colon;&colon;StatusOr&lt;T&gt;` object&apos;s error code&period; This function contains information about the failing status, but its exact formatting may change and should not be depended on&period;

The pointer of this string is guaranteed to be valid until any non&hyphen;const function is invoked on the exception object&period;

== Return Value

A null&hyphen;terminated explanatory string owned by this object&period;


[.small]#Created with https://www.mrdocs.com[MrDocs]#
