[#BloombergLP-balxml-ErrorInfo-setError-0b] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balxml.adoc[balxml]::xref:BloombergLP/balxml/ErrorInfo.adoc[ErrorInfo]::setError :relfileprefix: ../../../ :mrdocs: 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. == Synopsis Declared in `<balxml_errorinfo.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void setError(xref:BloombergLP/balxml/ErrorInfo.adoc[ErrorInfo] const& other); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#