[#mrdocs-Error-2constructor-0b]
= xref:mrdocs.adoc[mrdocs]::xref:mrdocs/Error.adoc[Error]::Error
:relfileprefix: ../../
:mrdocs:

Constructor&period;

== Synopsis

Declared in `&lt;mrdocs&sol;Support&sol;Error&period;hpp&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
Error(
    std::vector&lt;Error&gt; const& errors,
    std::source&lowbar;location loc = source&lowbar;location&colon;&colon;current());
----

== Description

This constructs a new error from a list of zero or more errors&period; If the list is empty, or if all the errors in the list indicate success, then newly constructed object will indicate success&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *errors*
| The list of errors to combine&period;
| *loc*
| The source location where the error occurred&period;
|===


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