[#BloombergLP-balxml-ErrorInfo-setError-0d]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balxml.adoc[balxml]::xref:BloombergLP/balxml/ErrorInfo.adoc[ErrorInfo]::setError
:relfileprefix: ../../../
:mrdocs:

`setError` overloads

== Synopses

Declared in `&lt;balxml&lowbar;errorinfo&period;h&gt;`

Conditionally assign the specified `other` object to this object&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
xref:BloombergLP/balxml/ErrorInfo/setError-0b.adoc[setError](xref:BloombergLP/balxml/ErrorInfo.adoc[ErrorInfo] const& other);
----

[.small]#xref:BloombergLP/balxml/ErrorInfo/setError-0b.adoc[_» more&period;&period;&period;_]#

Conditionally set this object&apos;s diagnostic from the specified values&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
xref:BloombergLP/balxml/ErrorInfo/setError-04.adoc[setError](
    xref:BloombergLP/balxml/ErrorInfo/Severity-0f.adoc[Severity] severity,
    int lineNumber,
    int columnNumber,
    std::string&lowbar;view const& source,
    std::string&lowbar;view const& errorMsg);
----

[.small]#xref:BloombergLP/balxml/ErrorInfo/setError-04.adoc[_» more&period;&period;&period;_]#

== Parameters

[cols="1,4"]
|===
| Name| Description
| *other*
| error information to assign if more severe
| *severity*
| severity of the diagnostic
| *lineNumber*
| line number of the diagnostic
| *columnNumber*
| column number of the diagnostic
| *source*
| name of the document containing the diagnostic
| *errorMsg*
| description of the diagnostic
|===


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