Sophie

Sophie

distrib > Mageia > 6 > armv5tl > media > core-updates > by-pkgid > 768f7d9f703884aa2562bf0a651086df > files > 446

qtbase5-doc-5.9.4-1.1.mga6.noarch.rpm

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html lang="en">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- qjsonparser.cpp -->
  <title>QJsonParseError Class | Qt Core 5.9</title>
  <link rel="stylesheet" type="text/css" href="style/offline-simple.css" />
  <script type="text/javascript">
    document.getElementsByTagName("link").item(0).setAttribute("href", "style/offline.css");
    // loading style sheet breaks anchors that were jumped to before
    // so force jumping to anchor again
    setTimeout(function() {
        var anchor = location.hash;
        // need to jump to different anchor first (e.g. none)
        location.hash = "#";
        setTimeout(function() {
            location.hash = anchor;
        }, 0);
    }, 0);
  </script>
</head>
<body>
<div class="header" id="qtdocheader">
  <div class="main">
    <div class="main-rounded">
      <div class="navigationbar">
        <table><tr>
<td >Qt 5.9</td><td ><a href="qtcore-index.html">Qt Core</a></td><td ><a href="qtcore-module.html">C++ Classes</a></td><td >QJsonParseError</td></tr></table><table class="buildversion"><tr>
<td id="buildversion" width="100%" align="right">Qt 5.9.4 Reference Documentation</td>
        </tr></table>
      </div>
    </div>
<div class="content">
<div class="line">
<div class="content mainContent">
<div class="sidebar">
<div class="toc">
<h3><a name="toc">Contents</a></h3>
<ul>
<li class="level1"><a href="#public-types">Public Types</a></li>
<li class="level1"><a href="#public-functions">Public Functions</a></li>
<li class="level1"><a href="#public-variables">Public Variables</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
</ul>
</div>
<div class="sidebar-content" id="sidebar-content"></div></div>
<h1 class="title">QJsonParseError Class</h1>
<!-- $$$QJsonParseError-brief -->
<p>The <a href="qjsonparseerror.html">QJsonParseError</a> class is used to report errors during JSON parsing. <a href="#details">More...</a></p>
<!-- @@@QJsonParseError -->
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> Header:</td><td class="memItemRight bottomAlign">   <span class="preprocessor">#include &lt;QJsonParseError&gt;</span>
</td></tr><tr><td class="memItemLeft rightAlign topAlign"> qmake:</td><td class="memItemRight bottomAlign"> QT += core</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Since:</td><td class="memItemRight bottomAlign">  Qt 5.0</td></tr></table></div><ul>
<li><a href="qjsonparseerror-members.html">List of all members, including inherited members</a></li>
</ul>
<p><b>Note:</b> All functions in this class are reentrant.</p>
<a name="public-types"></a>
<h2 id="public-types">Public Types</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="qjsonparseerror.html#ParseError-enum">ParseError</a></b> { NoError, UnterminatedObject, MissingNameSeparator, UnterminatedArray, ..., GarbageAtEnd }</td></tr>
</table></div>
<a name="public-functions"></a>
<h2 id="public-functions">Public Functions</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qjsonparseerror.html#errorString">errorString</a></b>() const</td></tr>
</table></div>
<a name="public-variables"></a>
<h2 id="public-variables">Public Variables</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> ParseError </td><td class="memItemRight bottomAlign"><b><a href="qjsonparseerror.html#error-var">error</a></b></td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qjsonparseerror.html#offset-var">offset</a></b></td></tr>
</table></div>
<a name="details"></a>
<!-- $$$QJsonParseError-description -->
<div class="descr">
<h2 id="details">Detailed Description</h2>
<p>The <a href="qjsonparseerror.html">QJsonParseError</a> class is used to report errors during JSON parsing.</p>
</div>
<p><b>See also </b><a href="json.html">JSON Support in Qt</a> and <a href="qtcore-json-savegame-example.html">JSON Save Game Example</a>.</p>
<!-- @@@QJsonParseError -->
<div class="types">
<h2>Member Type Documentation</h2>
<!-- $$$ParseError$$$NoError$$$UnterminatedObject$$$MissingNameSeparator$$$UnterminatedArray$$$MissingValueSeparator$$$IllegalValue$$$TerminationByNumber$$$IllegalNumber$$$IllegalEscapeSequence$$$IllegalUTF8String$$$UnterminatedString$$$MissingObject$$$DeepNesting$$$DocumentTooLarge$$$GarbageAtEnd -->
<h3 class="fn" id="ParseError-enum"><a name="ParseError-enum"></a>enum QJsonParseError::<span class="name">ParseError</span></h3>
<p>This enum describes the type of error that occurred during the parsing of a JSON document.</p>
<div class="table"><table class="valuelist"><tr valign="top" class="odd"><th class="tblConst">Constant</th><th class="tblval">Value</th><th class="tbldscr">Description</th></tr>
<tr><td class="topAlign"><code>QJsonParseError::NoError</code></td><td class="topAlign tblval"><code>0</code></td><td class="topAlign">No error occurred</td></tr>
<tr><td class="topAlign"><code>QJsonParseError::UnterminatedObject</code></td><td class="topAlign tblval"><code>1</code></td><td class="topAlign">An object is not correctly terminated with a closing curly bracket</td></tr>
<tr><td class="topAlign"><code>QJsonParseError::MissingNameSeparator</code></td><td class="topAlign tblval"><code>2</code></td><td class="topAlign">A comma separating different items is missing</td></tr>
<tr><td class="topAlign"><code>QJsonParseError::UnterminatedArray</code></td><td class="topAlign tblval"><code>3</code></td><td class="topAlign">The array is not correctly terminated with a closing square bracket</td></tr>
<tr><td class="topAlign"><code>QJsonParseError::MissingValueSeparator</code></td><td class="topAlign tblval"><code>4</code></td><td class="topAlign">A colon separating keys from values inside objects is missing</td></tr>
<tr><td class="topAlign"><code>QJsonParseError::IllegalValue</code></td><td class="topAlign tblval"><code>5</code></td><td class="topAlign">The value is illegal</td></tr>
<tr><td class="topAlign"><code>QJsonParseError::TerminationByNumber</code></td><td class="topAlign tblval"><code>6</code></td><td class="topAlign">The input stream ended while parsing a number</td></tr>
<tr><td class="topAlign"><code>QJsonParseError::IllegalNumber</code></td><td class="topAlign tblval"><code>7</code></td><td class="topAlign">The number is not well formed</td></tr>
<tr><td class="topAlign"><code>QJsonParseError::IllegalEscapeSequence</code></td><td class="topAlign tblval"><code>8</code></td><td class="topAlign">An illegal escape sequence occurred in the input</td></tr>
<tr><td class="topAlign"><code>QJsonParseError::IllegalUTF8String</code></td><td class="topAlign tblval"><code>9</code></td><td class="topAlign">An illegal UTF8 sequence occurred in the input</td></tr>
<tr><td class="topAlign"><code>QJsonParseError::UnterminatedString</code></td><td class="topAlign tblval"><code>10</code></td><td class="topAlign">A string wasn't terminated with a quote</td></tr>
<tr><td class="topAlign"><code>QJsonParseError::MissingObject</code></td><td class="topAlign tblval"><code>11</code></td><td class="topAlign">An object was expected but couldn't be found</td></tr>
<tr><td class="topAlign"><code>QJsonParseError::DeepNesting</code></td><td class="topAlign tblval"><code>12</code></td><td class="topAlign">The JSON document is too deeply nested for the parser to parse it</td></tr>
<tr><td class="topAlign"><code>QJsonParseError::DocumentTooLarge</code></td><td class="topAlign tblval"><code>13</code></td><td class="topAlign">The JSON document is too large for the parser to parse it</td></tr>
<tr><td class="topAlign"><code>QJsonParseError::GarbageAtEnd</code></td><td class="topAlign tblval"><code>14</code></td><td class="topAlign">The parsed document contains additional garbage characters at the end</td></tr>
</table></div>
<!-- @@@ParseError -->
</div>
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$errorString[overload1]$$$errorString -->
<h3 class="fn" id="errorString"><a name="errorString"></a><span class="type"><a href="qstring.html">QString</a></span> QJsonParseError::<span class="name">errorString</span>() const</h3>
<p>Returns the human-readable message appropriate to the reported JSON parsing error.</p>
<p><b>See also </b><a href="qjsonparseerror.html#error-var">error</a>.</p>
<!-- @@@errorString -->
</div>
<div class="vars">
<h2>Member Variable Documentation</h2>
<!-- $$$error -->
<h3 class="fn" id="error-var"><a name="error-var"></a><span class="type"><a href="qjsonparseerror.html#ParseError-enum">ParseError</a></span> QJsonParseError::<span class="name">error</span></h3>
<p>Contains the type of the parse error. Is equal to <a href="qjsonparseerror.html#ParseError-enum">QJsonParseError::NoError</a> if the document was parsed correctly.</p>
<p><b>See also </b><a href="qjsonparseerror.html#ParseError-enum">ParseError</a> and <a href="qjsonparseerror.html#errorString">errorString</a>().</p>
<!-- @@@error -->
<!-- $$$offset -->
<h3 class="fn" id="offset-var"><a name="offset-var"></a><span class="type">int</span> QJsonParseError::<span class="name">offset</span></h3>
<p>Contains the offset in the input string where the parse error occurred.</p>
<p><b>See also </b><a href="qjsonparseerror.html#error-var">error</a> and <a href="qjsonparseerror.html#errorString">errorString</a>().</p>
<!-- @@@offset -->
</div>
        </div>
       </div>
   </div>
   </div>
</div>
<div class="footer">
   <p>
   <acronym title="Copyright">&copy;</acronym> 2017 The Qt Company Ltd.
   Documentation contributions included herein are the copyrights of
   their respective owners.<br>    The documentation provided herein is licensed under the terms of the    <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation    License version 1.3</a> as published by the Free Software Foundation.<br>    Qt and respective logos are trademarks of The Qt Company Ltd.     in Finland and/or other countries worldwide. All other trademarks are property
   of their respective owners. </p>
</div>
</body>
</html>