[#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;`

If the severity of the specified `other` object is greater than the current value of `this&hyphen;&gt;severity()`, then assign this object the value of `other`, otherwise do nothing&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;_]#

If the specified `severity` is greater than the current value of `this&hyphen;&gt;severity()`, then set this object&apos;s severity to `severity`, line number to the specified `lineNumber`, column number to the specified `columnNumber`, source name to the specified `source`, and error message to the specified `errorMsg`, otherwise do nothing&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;_]#


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