[#BloombergLP-balxml-ErrorInfo] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balxml.adoc[balxml]::ErrorInfo :relfileprefix: ../../ :mrdocs: 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>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- class ErrorInfo; ---- == Enums [cols="1,4"] |=== | Name| Description | xref:BloombergLP/balxml/ErrorInfo/Severity-0f.adoc[`Severity`] | Severity level of a parser or decoder error. |=== == Member Functions [cols="1,4"] |=== | Name| Description | xref:BloombergLP/balxml/ErrorInfo/2constructor-06.adoc[`ErrorInfo`] [.small]#[constructor]# | Constructors | xref:BloombergLP/balxml/ErrorInfo/2destructor.adoc[`~ErrorInfo`] [.small]#[destructor]# | Destroy this object. | xref:BloombergLP/balxml/ErrorInfo/operator_assign.adoc[`operator=`] | Copy the value of the specified `rhs` object into this object and return a modifiable reference to this object. | xref:BloombergLP/balxml/ErrorInfo/columnNumber.adoc[`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. | xref:BloombergLP/balxml/ErrorInfo/isAnyError.adoc[`isAnyError`] | Return true if the `severity() >= `BAEXML_ERROR' (i.e., `BAEXML_ERROR` or `BAEXML_FATAL_ERROR`) and false otherwise. | xref:BloombergLP/balxml/ErrorInfo/isError.adoc[`isError`] | Return true if the `severity() == `BAEXML_ERROR' and false otherwise. | xref:BloombergLP/balxml/ErrorInfo/isFatalError.adoc[`isFatalError`] | Return true if the `severity() == `BAEXML_FATAL_ERROR' and false otherwise. | xref:BloombergLP/balxml/ErrorInfo/isNoError.adoc[`isNoError`] | Return true if the `severity() == `BAEXML_NO_ERROR' and false otherwise. | xref:BloombergLP/balxml/ErrorInfo/isWarning.adoc[`isWarning`] | Return true if the `severity() == `BAEXML_WARNING' and false otherwise. | xref:BloombergLP/balxml/ErrorInfo/lineNumber.adoc[`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. | xref:BloombergLP/balxml/ErrorInfo/message.adoc[`message`] | Return the string describing the error or warning. | xref:BloombergLP/balxml/ErrorInfo/reset.adoc[`reset`] | Reset this object to initial state, as if it were default constructed. | xref:BloombergLP/balxml/ErrorInfo/setError-0d.adoc[`setError`] | `setError` overloads | xref:BloombergLP/balxml/ErrorInfo/severity-03.adoc[`severity`] | Return the severity level. | xref:BloombergLP/balxml/ErrorInfo/source.adoc[`source`] | Return the string that identifies the document being parsed. | xref:BloombergLP/balxml/ErrorInfo/2conversion.adoc[`operator BloombergLP::bslmf::NestedTraitDeclaration<ErrorInfo, UsesBslmaAllocator>`] | `ErrorInfo` uses a `bslma` allocator. |=== == Non-Member Functions [cols="1,4"] |=== | Name| Description | xref:BloombergLP/balxml/operator_not_eq-0d.adoc[`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. | xref:BloombergLP/balxml/operator_eq-0e6.adoc[`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. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#