BloombergLP::balxml::ErrorInfo::setError

Conditionally set this object's diagnostic from the specified values.

Synopsis

Declared in <balxml_errorinfo.h>

void
setError(
    Severity severity,
    int lineNumber,
    int columnNumber,
    std::string_view const& source,
    std::string_view const& errorMsg);

Description

If the specified severity is greater than the current value of this->severity(), then set this object'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.

Parameters

NameDescription
severityseverity of the diagnostic
lineNumberline number of the diagnostic
columnNumbercolumn number of the diagnostic
sourcename of the document containing the diagnostic
errorMsgdescription of the diagnostic