<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!--NewPage--> <HTML> <HEAD> <!-- Generated by javadoc (build 1.5.0_09) on Tue Aug 07 17:07:40 CEST 2007 --> <TITLE> QXmlErrorHandlerInterface </TITLE> <META NAME="keywords" CONTENT="com.trolltech.qt.xml.QXmlErrorHandlerInterface interface"> <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style"> <SCRIPT type="text/javascript"> function windowTitle() { parent.document.title="QXmlErrorHandlerInterface"; } </SCRIPT> <NOSCRIPT> </NOSCRIPT> </HEAD> <BODY BGCOLOR="white" onload="windowTitle();"> <!-- ========= START OF TOP NAVBAR ======= --> <A NAME="navbar_top"><!-- --></A> <A HREF="#skip-navbar_top" title="Skip navigation links"></A> <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> <TR> <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A NAME="navbar_top_firstrow"><!-- --></A> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR> </TABLE> </TD> <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> </EM> </TD> </TR> <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../com/trolltech/qt/xml/QXmlErrorHandler.html" title="class in com.trolltech.qt.xml"><B>PREV CLASS</B></A> <A HREF="../../../../com/trolltech/qt/xml/QXmlInputSource.html" title="class in com.trolltech.qt.xml"><B>NEXT CLASS</B></A></FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../index.html?com/trolltech/qt/xml/QXmlErrorHandlerInterface.html" target="_top"><B>FRAMES</B></A> <A HREF="QXmlErrorHandlerInterface.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--> </SCRIPT> <NOSCRIPT> <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> </NOSCRIPT> </FONT></TD> </TR> <TR> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: NESTED | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD> </TR> </TABLE> <A NAME="skip-navbar_top"></A> <!-- ========= END OF TOP NAVBAR ========= --> <HR> <!-- ======== START OF CLASS DATA ======== --> <H2> <FONT SIZE="-1"> com.trolltech.qt.xml</FONT> <BR> Interface QXmlErrorHandlerInterface</H2> <DL> <DT><B>All Superinterfaces:</B> <DD><A HREF="../../../../com/trolltech/qt/QtJambiInterface.html" title="interface in com.trolltech.qt">QtJambiInterface</A></DD> </DL> <DL> <DT><B>All Known Implementing Classes:</B> <DD><A HREF="../../../../com/trolltech/qt/xml/QXmlDefaultHandler.html" title="class in com.trolltech.qt.xml">QXmlDefaultHandler</A>, <A HREF="../../../../com/trolltech/qt/xml/QXmlErrorHandler.html" title="class in com.trolltech.qt.xml">QXmlErrorHandler</A></DD> </DL> <HR> <DL> <DT><PRE>public interface <B>QXmlErrorHandlerInterface</B><DT>extends <A HREF="../../../../com/trolltech/qt/QtJambiInterface.html" title="interface in com.trolltech.qt">QtJambiInterface</A></DL> </PRE> <P> <p>The <a href="QXmlErrorHandler.html"><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="QXmlErrorHandlerInterface.html#warning(com.trolltech.qt.xml.QXmlParseException)"><tt>warning</tt></a>, <a href="QXmlErrorHandlerInterface.html#error(com.trolltech.qt.xml.QXmlParseException)"><tt>error</tt></a> and <a href="QXmlErrorHandlerInterface.html#fatalError(com.trolltech.qt.xml.QXmlParseException)"><tt>fatalError</tt></a>, with the error text being reported with <a href="QXmlErrorHandlerInterface.html#errorString()"><tt>errorString</tt></a>.</p> <P> <P> <DL> <DT><B>See Also:</B><DD><a href="QXmlDTDHandler.html"><tt>QXmlDTDHandler</tt></a>, <a href="QXmlDeclHandler.html"><tt>QXmlDeclHandler</tt></a>, <a href="QXmlContentHandler.html"><tt>QXmlContentHandler</tt></a>, <a href="QXmlEntityResolver.html"><tt>QXmlEntityResolver</tt></a>, <a href="QXmlLexicalHandler.html"><tt>QXmlLexicalHandler</tt></a>, <CODE>to SAX2</tt></CODE></DL> <HR> <P> <!-- ========== METHOD SUMMARY =========== --> <A NAME="method_summary"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> <B>Method Summary</B></FONT></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> boolean</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/xml/QXmlErrorHandlerInterface.html#error(com.trolltech.qt.xml.QXmlParseException)">error</A></B>(<A HREF="../../../../com/trolltech/qt/xml/QXmlParseException.html" title="class in com.trolltech.qt.xml">QXmlParseException</A> exception)</CODE> <BR> A reader might use this function to report a recoverable error.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> java.lang.String</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/xml/QXmlErrorHandlerInterface.html#errorString()">errorString</A></B>()</CODE> <BR> The reader calls this function to get an error string if any of the handler functions returns false.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> boolean</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/xml/QXmlErrorHandlerInterface.html#fatalError(com.trolltech.qt.xml.QXmlParseException)">fatalError</A></B>(<A HREF="../../../../com/trolltech/qt/xml/QXmlParseException.html" title="class in com.trolltech.qt.xml">QXmlParseException</A> exception)</CODE> <BR> A reader must use this function to report a non-recoverable error.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> boolean</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/trolltech/qt/xml/QXmlErrorHandlerInterface.html#warning(com.trolltech.qt.xml.QXmlParseException)">warning</A></B>(<A HREF="../../../../com/trolltech/qt/xml/QXmlParseException.html" title="class in com.trolltech.qt.xml">QXmlParseException</A> exception)</CODE> <BR> A reader might use this function to report a warning.</TD> </TR> </TABLE> <A NAME="methods_inherited_from_class_com.trolltech.qt.QtJambiInterface"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> <TH ALIGN="left"><B>Methods inherited from interface com.trolltech.qt.<A HREF="../../../../com/trolltech/qt/QtJambiInterface.html" title="interface in com.trolltech.qt">QtJambiInterface</A></B></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><A HREF="../../../../com/trolltech/qt/QtJambiInterface.html#disableGarbageCollection()">disableGarbageCollection</A>, <A HREF="../../../../com/trolltech/qt/QtJambiInterface.html#nativeId()">nativeId</A>, <A HREF="../../../../com/trolltech/qt/QtJambiInterface.html#nativePointer()">nativePointer</A>, <A HREF="../../../../com/trolltech/qt/QtJambiInterface.html#reenableGarbageCollection()">reenableGarbageCollection</A>, <A HREF="../../../../com/trolltech/qt/QtJambiInterface.html#setJavaOwnership()">setJavaOwnership</A></CODE></TD> </TR> </TABLE> <P> <!-- ============ METHOD DETAIL ========== --> <A NAME="method_detail"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> <B>Method Detail</B></FONT></TH> </TR> </TABLE> <A NAME="error(com.trolltech.qt.xml.QXmlParseException)"><!-- --></A><H3> error</H3> <PRE> boolean <B>error</B>(<A HREF="../../../../com/trolltech/qt/xml/QXmlParseException.html" title="class in com.trolltech.qt.xml">QXmlParseException</A> exception)</PRE> <DL> <DD><p>A reader might use this function to report a recoverable error. A recoverable error corresponds to the definiton of "error" 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="QXmlErrorHandlerInterface.html#errorString()"><tt>errorString</tt></a> to get the error message.</p> <P> <DD><DL> </DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="errorString()"><!-- --></A><H3> errorString</H3> <PRE> java.lang.String <B>errorString</B>()</PRE> <DL> <DD><p>The reader calls this function to get an error string if any of the handler functions returns false.</p> <P> <DD><DL> </DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="fatalError(com.trolltech.qt.xml.QXmlParseException)"><!-- --></A><H3> fatalError</H3> <PRE> boolean <B>fatalError</B>(<A HREF="../../../../com/trolltech/qt/xml/QXmlParseException.html" title="class in com.trolltech.qt.xml">QXmlParseException</A> exception)</PRE> <DL> <DD><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> <P> <DD><DL> </DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="warning(com.trolltech.qt.xml.QXmlParseException)"><!-- --></A><H3> warning</H3> <PRE> boolean <B>warning</B>(<A HREF="../../../../com/trolltech/qt/xml/QXmlParseException.html" title="class in com.trolltech.qt.xml">QXmlParseException</A> exception)</PRE> <DL> <DD><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="QXmlErrorHandlerInterface.html#errorString()"><tt>errorString</tt></a> to get the error message.</p> <P> <DD><DL> </DL> </DD> <DD><DL> </DL> </DD> </DL> <!-- ========= END OF CLASS DATA ========= --> <HR> <!-- ======= START OF BOTTOM NAVBAR ====== --> <A NAME="navbar_bottom"><!-- --></A> <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> <TR> <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A NAME="navbar_bottom_firstrow"><!-- --></A> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR> </TABLE> </TD> <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> </EM> </TD> </TR> <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../com/trolltech/qt/xml/QXmlErrorHandler.html" title="class in com.trolltech.qt.xml"><B>PREV CLASS</B></A> <A HREF="../../../../com/trolltech/qt/xml/QXmlInputSource.html" title="class in com.trolltech.qt.xml"><B>NEXT CLASS</B></A></FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../index.html?com/trolltech/qt/xml/QXmlErrorHandlerInterface.html" target="_top"><B>FRAMES</B></A> <A HREF="QXmlErrorHandlerInterface.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--> </SCRIPT> <NOSCRIPT> <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> </NOSCRIPT> </FONT></TD> </TR> <TR> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: NESTED | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD> </TR> </TABLE> <A NAME="skip-navbar_bottom"></A> <!-- ======== END OF BOTTOM NAVBAR ======= --> <HR> </BODY> </HTML>