BloombergLP::balxml::ErrorInfo

This class provides detailed information for errors encountered during XML parsing.

Synopsis

Declared in <balxml_errorinfo.h>

class ErrorInfo;

Description

Such information is common for most parsers and contains the following data: line number, column number, severity code, identification of source document and the parser error message.

Enums

NameDescription
Severity Severity level of a parser or decoder error.

Member Functions

NameDescription
ErrorInfo [constructor]Constructors
~ErrorInfo [destructor]Destroy this object.
operator= Copy the value of the specified rhs object into this object and return a modifiable reference to this object.
columnNumber Return the column number.
isAnyError Return true if the severity() >= BAEXML_ERROR' (i.e., BAEXML_ERROR or BAEXML_FATAL_ERROR) and false otherwise.
isError Return true if the severity() == BAEXML_ERROR' and false otherwise.
isFatalError Return true if the severity() == BAEXML_FATAL_ERROR' and false otherwise.
isNoError Return true if the severity() == BAEXML_NO_ERROR' and false otherwise.
isWarning Return true if the severity() == BAEXML_WARNING' and false otherwise.
lineNumber Return the line number of the warning or error.
message Return the string describing the error or warning.
reset Reset this object to initial state, as if it were default constructed.
setError setError overloads
severity Return the severity level.
source Return the string that identifies the document being parsed.
operator BloombergLP::bslmf::NestedTraitDeclaration<ErrorInfo, UsesBslmaAllocator> ErrorInfo uses a bslma allocator.

Non-Member Functions

NameDescription
operator!=Return true if the specified lhs object does not have the same value as the specified rhs object.
operator==Return true if the specified lhs and rhs objects have the same value, and false otherwise.