[#util-Unexpected-error-0b]
= xref:util.adoc[util]::xref:util/Unexpected.adoc[Unexpected]::error
:relfileprefix: ../../
:mrdocs:

Access the stored error value&period;

== Synopses

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

Access the stored error value&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
constexpr
E const&
xref:util/Unexpected/error-0f6.adoc[error]() const &amp; noexcept;
----

[.small]#xref:util/Unexpected/error-0f6.adoc[_» more&period;&period;&period;_]#

Access the stored error value&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
constexpr
E&
xref:util/Unexpected/error-0f7.adoc[error]() &amp; noexcept;
----

[.small]#xref:util/Unexpected/error-0f7.adoc[_» more&period;&period;&period;_]#

Access the stored error value&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
constexpr
E&&
xref:util/Unexpected/error-08.adoc[error]() &amp;&amp; noexcept;
----

[.small]#xref:util/Unexpected/error-08.adoc[_» more&period;&period;&period;_]#

== Return Value

* A const reference to the stored error&period;
* A reference to the stored error&period;
* An rvalue reference to the stored error&period;


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