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

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

== Synopsis

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

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

== Description

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;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *other*
| error information to assign if more severe
|===


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