[#util-ErrorString-0d]
= xref:util.adoc[util]::ErrorString
:relfileprefix: ../
:mrdocs:

Extracts the error message from a result&period;

== Synopses

Declared in `&lt;util&sol;result&period;h&gt;`

Extracts the error message from a result&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:bilingual_str.adoc[bilingual&lowbar;str]
xref:util/ErrorString-01.adoc[ErrorString](xref:util/Result.adoc[Result&lt;FT&gt;] const& result);
----

[.small]#xref:util/ErrorString-01.adoc[_» more&period;&period;&period;_]#

Extracts the error message from a result&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;typename T&gt;
xref:bilingual_str.adoc[bilingual&lowbar;str]
xref:util/ErrorString-07.adoc[ErrorString](xref:util/Result.adoc[Result&lt;T&gt;] const& result);
----

[.small]#xref:util/ErrorString-07.adoc[_» more&period;&period;&period;_]#

== Return Value

the stored error message, or an empty string when the result holds a value

== Parameters

[cols="1,4"]
|===
| Name| Description
| *result*
| the result to inspect
|===


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