[#mrdocs-Error-2constructor-0b] = xref:mrdocs.adoc[mrdocs]::xref:mrdocs/Error.adoc[Error]::Error :relfileprefix: ../../ :mrdocs: Constructor. == Synopsis Declared in `<mrdocs/Support/Error.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- Error( std::vector<Error> const& errors, std::source_location loc = source_location::current()); ---- == Description This constructs a new error from a list of zero or more errors. If the list is empty, or if all the errors in the list indicate success, then newly constructed object will indicate success. == Parameters [cols="1,4"] |=== | Name| Description | *errors* | The list of errors to combine. | *loc* | The source location where the error occurred. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#