<?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <!-- qxml.cpp --> <head> <title>Qt 4.6: QXmlParseException Class Reference</title> <link href="classic.css" rel="stylesheet" type="text/css" /> </head> <body> <a name="//apple_ref/cpp/cl//QXmlParseException"></a> <table border="0" cellpadding="0" cellspacing="0" width="100%"> <tr> <td align="left" valign="top" width="32"><a href="http://qt.nokia.com/"><img src="images/qt-logo.png" align="left" border="0" /></a></td> <td width="1"> </td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a> · <a href="classes.html"><font color="#004faf">All Classes</font></a> · <a href="functions.html"><font color="#004faf">All Functions</font></a> · <a href="overviews.html"><font color="#004faf">Overviews</font></a></td></tr></table><h1 class="title">QXmlParseException Class Reference<br /><span class="small-subtitle">[<a href="qtxml.html">QtXml</a> module]</span> </h1> <p>The QXmlParseException class is used to report errors with the <a href="qxmlerrorhandler.html">QXmlErrorHandler</a> interface. <a href="#details">More...</a></p> <pre> #include <QXmlParseException></pre><p><b>This class is not part of the Qt GUI Framework Edition.</b></p> <p><b>Note:</b> All functions in this class are <a href="threads-reentrancy.html#reentrant">reentrant</a>.</p> <ul> <li><a href="qxmlparseexception-members.html">List of all members, including inherited members</a></li> </ul> <hr /> <a name="public-functions"></a> <h2>Public Functions</h2> <table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%"> <tr><td class="memItemLeft" align="right" valign="top"></td><td class="memItemRight" valign="bottom"><b><a href="qxmlparseexception.html#QXmlParseException">QXmlParseException</a></b> ( const QString & <i>name</i> = QString(), int <i>c</i> = -1, int <i>l</i> = -1, const QString & <i>p</i> = QString(), const QString & <i>s</i> = QString() )</td></tr> <tr><td class="memItemLeft" align="right" valign="top"></td><td class="memItemRight" valign="bottom"><b><a href="qxmlparseexception.html#QXmlParseException-2">QXmlParseException</a></b> ( const QXmlParseException & <i>other</i> )</td></tr> <tr><td class="memItemLeft" align="right" valign="top"></td><td class="memItemRight" valign="bottom"><b><a href="qxmlparseexception.html#dtor.QXmlParseException">~QXmlParseException</a></b> ()</td></tr> <tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><b><a href="qxmlparseexception.html#columnNumber">columnNumber</a></b> () const</td></tr> <tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><b><a href="qxmlparseexception.html#lineNumber">lineNumber</a></b> () const</td></tr> <tr><td class="memItemLeft" align="right" valign="top">QString </td><td class="memItemRight" valign="bottom"><b><a href="qxmlparseexception.html#message">message</a></b> () const</td></tr> <tr><td class="memItemLeft" align="right" valign="top">QString </td><td class="memItemRight" valign="bottom"><b><a href="qxmlparseexception.html#publicId">publicId</a></b> () const</td></tr> <tr><td class="memItemLeft" align="right" valign="top">QString </td><td class="memItemRight" valign="bottom"><b><a href="qxmlparseexception.html#systemId">systemId</a></b> () const</td></tr> </table> <a name="details"></a> <hr /> <h2>Detailed Description</h2> <p>The QXmlParseException class is used to report errors with the <a href="qxmlerrorhandler.html">QXmlErrorHandler</a> interface.</p> <p>The XML subsystem constructs an instance of this class when it detects an error. You can retrieve the place where the error occurred using <a href="qxmlparseexception.html#systemId">systemId</a>(), <a href="qxmlparseexception.html#publicId">publicId</a>(), <a href="qxmlparseexception.html#lineNumber">lineNumber</a>() and <a href="qxmlparseexception.html#columnNumber">columnNumber</a>(), along with the error <a href="qxmlparseexception.html#message">message</a>(). The possible error messages are:</p> <ul> <li>"no error occurred"</li> <li>"error triggered by consumer"</li> <li>"unexpected end of file"</li> <li>"more than one document type definition"</li> <li>"error occurred while parsing element"</li> <li>"tag mismatch"</li> <li>"error occurred while parsing content"</li> <li>"unexpected character"</li> <li>"invalid name for processing instruction"</li> <li>"version expected while reading the XML declaration"</li> <li>"wrong value for standalone declaration"</li> <li>"encoding declaration or standalone declaration expected while reading the XML declaration"</li> <li>"standalone declaration expected while reading the XML declaration"</li> <li>"error occurred while parsing document type definition"</li> <li>"letter is expected"</li> <li>"error occurred while parsing comment"</li> <li>"error occurred while parsing reference"</li> <li>"internal general entity reference not allowed in DTD"</li> <li>"external parsed general entity reference not allowed in attribute value"</li> <li>"external parsed general entity reference not allowed in DTD"</li> <li>"unparsed entity reference n wrong context"</li> <li>"recursive entities"</li> <li>"error in the text declaration of an external entity"</li> </ul> <p>Note that, if you want to display these error messages to your application's users, they will be displayed in English unless they are explicitly translated.</p> <p>See also <a href="qxmlerrorhandler.html">QXmlErrorHandler</a> and <a href="qxmlreader.html">QXmlReader</a>.</p> <hr /> <h2>Member Function Documentation</h2> <a name="//apple_ref/cpp/instm/QXmlParseException/QXmlParseException"></a> <h3 class="fn"><a name="QXmlParseException"></a>QXmlParseException::QXmlParseException ( const <a href="qstring.html">QString</a> & <i>name</i> = QString(), int <i>c</i> = -1, int <i>l</i> = -1, const <a href="qstring.html">QString</a> & <i>p</i> = QString(), const <a href="qstring.html">QString</a> & <i>s</i> = QString() )</h3> <p>Constructs a parse exception with the error string <i>name</i> for column <i>c</i> and line <i>l</i> for the public identifier <i>p</i> and the system identifier <i>s</i>.</p> <h3 class="fn"><a name="QXmlParseException-2"></a>QXmlParseException::QXmlParseException ( const QXmlParseException & <i>other</i> )</h3> <p>Creates a copy of <i>other</i>.</p> <a name="//apple_ref/cpp/instm/QXmlParseException/~QXmlParseException"></a> <h3 class="fn"><a name="dtor.QXmlParseException"></a>QXmlParseException::~QXmlParseException ()</h3> <p>Destroys the <a href="qxmlparseexception.html">QXmlParseException</a>.</p> <a name="//apple_ref/cpp/instm/QXmlParseException/columnNumber"></a> <h3 class="fn"><a name="columnNumber"></a>int QXmlParseException::columnNumber () const</h3> <p>Returns the column number where the error occurred.</p> <a name="//apple_ref/cpp/instm/QXmlParseException/lineNumber"></a> <h3 class="fn"><a name="lineNumber"></a>int QXmlParseException::lineNumber () const</h3> <p>Returns the line number where the error occurred.</p> <a name="//apple_ref/cpp/instm/QXmlParseException/message"></a> <h3 class="fn"><a name="message"></a><a href="qstring.html">QString</a> QXmlParseException::message () const</h3> <p>Returns the error message.</p> <a name="//apple_ref/cpp/instm/QXmlParseException/publicId"></a> <h3 class="fn"><a name="publicId"></a><a href="qstring.html">QString</a> QXmlParseException::publicId () const</h3> <p>Returns the public identifier where the error occurred.</p> <a name="//apple_ref/cpp/instm/QXmlParseException/systemId"></a> <h3 class="fn"><a name="systemId"></a><a href="qstring.html">QString</a> QXmlParseException::systemId () const</h3> <p>Returns the system identifier where the error occurred.</p> <p /><address><hr /><div align="center"> <table width="100%" cellspacing="0" border="0"><tr class="address"> <td width="40%" align="left">Copyright © 2010 Nokia Corporation and/or its subsidiary(-ies)</td> <td width="20%" align="center"><a href="trademarks.html">Trademarks</a></td> <td width="40%" align="right"><div align="right">Qt 4.6.3</div></td> </tr></table></div></address></body> </html>