[#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. == Synopsis Declared in `<balxml_errorinfo.h>` [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‐>severity()`, then assign this object the value of `other`, otherwise do nothing. == Parameters [cols="1,4"] |=== | Name| Description | *other* | error information to assign if more severe |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#