<class name="QXmlErrorHandler" doc="/** <p>The <a href="QXmlErrorHandler.html#QXmlErrorHandler()"><tt>QXmlErrorHandler</tt></a> class provides an interface to report errors in XML data.</p> <p>If you want your application to report errors to the user or to perform customized error handling, you should subclass this class.</p> <p>You can set the error handler with QXmlReader::setErrorHandler().</p> <p>Errors can be reported using <a href="QXmlErrorHandler.html#warning(com.trolltech.qt.xml.QXmlParseException)"><tt>warning</tt></a>, <a href="QXmlErrorHandler.html#error(com.trolltech.qt.xml.QXmlParseException)"><tt>error</tt></a> and <a href="QXmlErrorHandler.html#fatalError(com.trolltech.qt.xml.QXmlParseException)"><tt>fatalError</tt></a>, with the error text being reported with <a href="QXmlErrorHandler.html#errorString()"><tt>errorString</tt></a>.</p> @see <a href="QXmlDTDHandler.html"><tt>QXmlDTDHandler</tt></a> @see <a href="QXmlDeclHandler.html"><tt>QXmlDeclHandler</tt></a> @see <a href="QXmlContentHandler.html"><tt>QXmlContentHandler</tt></a> @see <a href="QXmlEntityResolver.html"><tt>QXmlEntityResolver</tt></a> @see <a href="QXmlLexicalHandler.html"><tt>QXmlLexicalHandler</tt></a> @see Introduction to SAX2</tt> */"> <method name="public QXmlErrorHandler()"/> <method name="public abstract boolean error(com.trolltech.qt.xml.QXmlParseException exception)" doc="/** <p>A reader might use this function to report a recoverable error. A recoverable error corresponds to the definiton of &quot;error&quot; in section 1.2 of the XML 1.0 specification. Details of the error are stored in <tt>exception</tt>.</p> <p>The reader must continue to provide normal parsing events after invoking this function.</p> <p>If this function returns false the reader stops parsing and reports an error. The reader uses the function <a href="QXmlErrorHandler.html#errorString()"><tt>errorString</tt></a> to get the error message.</p> */"/> <method name="public abstract java.lang.String errorString()" doc="/** <p>The reader calls this function to get an error string if any of the handler functions returns false.</p> */"/> <method name="public abstract boolean fatalError(com.trolltech.qt.xml.QXmlParseException exception)" doc="/** <p>A reader must use this function to report a non-recoverable error. Details of the error are stored in <tt>exception</tt>.</p> <p>If this function returns true the reader might try to go on parsing and reporting further errors, but no regular parsing events are reported.</p> */"/> <method name="public abstract boolean warning(com.trolltech.qt.xml.QXmlParseException exception)" doc="/** <p>A reader might use this function to report a warning. Warnings are conditions that are not errors or fatal errors as defined by the XML 1.0 specification. Details of the warning are stored in <tt>exception</tt>.</p> <p>If this function returns false the reader stops parsing and reports an error. The reader uses the function <a href="QXmlErrorHandler.html#errorString()"><tt>errorString</tt></a> to get the error message.</p> */"/> </class>