This class provides detailed information for errors encountered during XML parsing. 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.

Synopsis

Declared in <balxml_errorinfo.h>

class ErrorInfo;

Enums

Name

Description

Severity

Severity level of a parser or decoder error.

Member Functions

Name

Description

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. By convention, the first column is numbered 1. The constructors and reset functions set the column number to 0, since there is no error column to report.

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. By convention, the first line is numbered 1. The constructors and reset functions set the line number to 0, since there is no error line to report.

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

Name

Description

operator!=

Return true if the specified lhs object does not have the same value as the specified rhs object. The two objects have the same value if severity(), lineNumber(), columnNumber(), source(), and message() return equal values for both.

operator==

Return true if the specified lhs object has the same value as the specified rhs object. The two objects have the same value if severity(), lineNumber(), columnNumber(), source(), and message() return equal values for both.

Created with MrDocs