blob: 6e471488bf340ce46a94e47b0c127b6173731f3f [file] [log] [blame]
<!-- HTML header for doxygen 1.8.7-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.16"/>
<title>RapidJSON: RapidJSON error handling</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(initResizable);
/* @license-end */</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function() { init_search(); });
/* @license-end */
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="doxygenextra.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="topbanner"><a href="https://github.com/Tencent/rapidjson" title="RapidJSON GitHub"><i class="githublogo"></i></a></div>
<div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<img id="MSearchSelect" src="search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="Search" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
</span><span class="right">
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
</span>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.16 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html','');});
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div class="header">
<div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#define-members">Macros</a> &#124;
<a href="#enum-members">Enumerations</a> &#124;
<a href="#func-members">Functions</a> &#124;
<a href="#var-members">Variables</a> </div>
<div class="headertitle">
<div class="title">RapidJSON error handling</div> </div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:structrapidjson_1_1_parse_result"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#structrapidjson_1_1_parse_result">rapidjson::ParseResult</a></td></tr>
<tr class="memdesc:structrapidjson_1_1_parse_result"><td class="mdescLeft">&#160;</td><td class="mdescRight">Result of parsing (wraps ParseErrorCode) <a href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#structrapidjson_1_1_parse_result">More...</a><br /></td></tr>
<tr class="separator:structrapidjson_1_1_parse_result"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:ga7e4636fd48d0148f102b8a13f0539d8c"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#ga7e4636fd48d0148f102b8a13f0539d8c">RAPIDJSON_ERROR_CHARTYPE</a>&#160;&#160;&#160;char</td></tr>
<tr class="memdesc:ga7e4636fd48d0148f102b8a13f0539d8c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Character type of error messages. <a href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#ga7e4636fd48d0148f102b8a13f0539d8c">More...</a><br /></td></tr>
<tr class="separator:ga7e4636fd48d0148f102b8a13f0539d8c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gabe2e1bd1349e5a7d6c1af78c05a98f0d"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#gabe2e1bd1349e5a7d6c1af78c05a98f0d">RAPIDJSON_ERROR_STRING</a>(x)&#160;&#160;&#160;x</td></tr>
<tr class="memdesc:gabe2e1bd1349e5a7d6c1af78c05a98f0d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Macro for converting string literial to <a class="el" href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#ga7e4636fd48d0148f102b8a13f0539d8c">RAPIDJSON_ERROR_CHARTYPE</a>[]. <a href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#gabe2e1bd1349e5a7d6c1af78c05a98f0d">More...</a><br /></td></tr>
<tr class="separator:gabe2e1bd1349e5a7d6c1af78c05a98f0d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga7f8c4265b2edda78568ae3338aaf1461"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#ga7f8c4265b2edda78568ae3338aaf1461">RAPIDJSON_PARSE_ERROR_NORETURN</a>(parseErrorCode, offset)</td></tr>
<tr class="memdesc:ga7f8c4265b2edda78568ae3338aaf1461"><td class="mdescLeft">&#160;</td><td class="mdescRight">Macro to indicate a parse error. <a href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#ga7f8c4265b2edda78568ae3338aaf1461">More...</a><br /></td></tr>
<tr class="separator:ga7f8c4265b2edda78568ae3338aaf1461"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gae3689840fa6e89a241313f33b602f865"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#gae3689840fa6e89a241313f33b602f865">RAPIDJSON_PARSE_ERROR</a>(parseErrorCode, offset)</td></tr>
<tr class="memdesc:gae3689840fa6e89a241313f33b602f865"><td class="mdescLeft">&#160;</td><td class="mdescRight">(Internal) macro to indicate and handle a parse error. <a href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#gae3689840fa6e89a241313f33b602f865">More...</a><br /></td></tr>
<tr class="separator:gae3689840fa6e89a241313f33b602f865"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="enum-members"></a>
Enumerations</h2></td></tr>
<tr class="memitem:ga7d3acf640886b1f2552dc8c4cd6dea60"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#ga7d3acf640886b1f2552dc8c4cd6dea60">rapidjson::ParseErrorCode</a> { <br />
&#160;&#160;<a class="el" href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#gga7d3acf640886b1f2552dc8c4cd6dea60a86a60b723dca32df5debab2c3db4235f">rapidjson::kParseErrorNone</a> = 0,
<a class="el" href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#gga7d3acf640886b1f2552dc8c4cd6dea60a06183076357ebd9eca228666f614c286">rapidjson::kParseErrorDocumentEmpty</a>,
<a class="el" href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#gga7d3acf640886b1f2552dc8c4cd6dea60a2022599bcd4f64d58885a026f95751d5">rapidjson::kParseErrorDocumentRootNotSingular</a>,
<a class="el" href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#gga7d3acf640886b1f2552dc8c4cd6dea60ab7fa69bce0c393cf3a2b6065111f2f57">rapidjson::kParseErrorValueInvalid</a>,
<br />
&#160;&#160;<a class="el" href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#gga7d3acf640886b1f2552dc8c4cd6dea60ab707b848425668e765def25554735242">rapidjson::kParseErrorObjectMissName</a>,
<a class="el" href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#gga7d3acf640886b1f2552dc8c4cd6dea60a58e952084a0dfdbc5630f624252aef5c">rapidjson::kParseErrorObjectMissColon</a>,
<a class="el" href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#gga7d3acf640886b1f2552dc8c4cd6dea60a2a81a684f39fc882ec99f07e86343f73">rapidjson::kParseErrorObjectMissCommaOrCurlyBracket</a>,
<a class="el" href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#gga7d3acf640886b1f2552dc8c4cd6dea60a1a4ac97731f997e9591b40f98ecd9f93">rapidjson::kParseErrorArrayMissCommaOrSquareBracket</a>,
<br />
&#160;&#160;<a class="el" href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#gga7d3acf640886b1f2552dc8c4cd6dea60a23c38bf88b8448555c0eb41e1735bd92">rapidjson::kParseErrorStringUnicodeEscapeInvalidHex</a>,
<a class="el" href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#gga7d3acf640886b1f2552dc8c4cd6dea60a636209a2e516fbdb4db5ad0a83a6b386">rapidjson::kParseErrorStringUnicodeSurrogateInvalid</a>,
<a class="el" href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#gga7d3acf640886b1f2552dc8c4cd6dea60a8dd0af5e6103a6503c61c38cb2b0bab9">rapidjson::kParseErrorStringEscapeInvalid</a>,
<a class="el" href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#gga7d3acf640886b1f2552dc8c4cd6dea60af7daa91caa53abb881ea231a874a4f40">rapidjson::kParseErrorStringMissQuotationMark</a>,
<br />
&#160;&#160;<a class="el" href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#gga7d3acf640886b1f2552dc8c4cd6dea60a62ce0f5c74e4ab34ac325d2adda8fa8f">rapidjson::kParseErrorStringInvalidEncoding</a>,
<a class="el" href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#gga7d3acf640886b1f2552dc8c4cd6dea60a240cebadea89f7282ab263b5a22c9805">rapidjson::kParseErrorNumberTooBig</a>,
<a class="el" href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#gga7d3acf640886b1f2552dc8c4cd6dea60ac840ece3ba6874fe6f16c01ebb71031f">rapidjson::kParseErrorNumberMissFraction</a>,
<a class="el" href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#gga7d3acf640886b1f2552dc8c4cd6dea60a28a1c720ae63560780ccd992dc999ab7">rapidjson::kParseErrorNumberMissExponent</a>,
<br />
&#160;&#160;<a class="el" href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#gga7d3acf640886b1f2552dc8c4cd6dea60ab250f87c3d8454c579364b5a0f697a50">rapidjson::kParseErrorTermination</a>,
<a class="el" href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#gga7d3acf640886b1f2552dc8c4cd6dea60a7abf1a337294d984a3f4d18b5843fb24">rapidjson::kParseErrorUnspecificSyntaxError</a>
<br />
}</td></tr>
<tr class="memdesc:ga7d3acf640886b1f2552dc8c4cd6dea60"><td class="mdescLeft">&#160;</td><td class="mdescRight">Error code of parsing. <a href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#ga7d3acf640886b1f2552dc8c4cd6dea60">More...</a><br /></td></tr>
<tr class="separator:ga7d3acf640886b1f2552dc8c4cd6dea60"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga633f43fd92e6ed5ceb87dbf570647847"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#ga633f43fd92e6ed5ceb87dbf570647847">rapidjson::ValidateErrorCode</a> { <br />
&#160;&#160;<a class="el" href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#gga633f43fd92e6ed5ceb87dbf570647847a05469e37a2917fef9822eaf9e2dfd60e">rapidjson::kValidateErrors</a> = -1,
<a class="el" href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#gga633f43fd92e6ed5ceb87dbf570647847a569afaca49e48ee8bd928284409dcab5">rapidjson::kValidateErrorNone</a> = 0,
<a class="el" href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#gga633f43fd92e6ed5ceb87dbf570647847aa01437cd68a424643a8d9c12c1a3ff5a">rapidjson::kValidateErrorMultipleOf</a>,
<a class="el" href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#gga633f43fd92e6ed5ceb87dbf570647847a5338314546adf96b80b1da045478c89b">rapidjson::kValidateErrorMaximum</a>,
<br />
&#160;&#160;<a class="el" href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#gga633f43fd92e6ed5ceb87dbf570647847a88597e022ffccc312d5169a87dff6cff">rapidjson::kValidateErrorExclusiveMaximum</a>,
<a class="el" href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#gga633f43fd92e6ed5ceb87dbf570647847ad365b8abebe4008652940df0a5add9c4">rapidjson::kValidateErrorMinimum</a>,
<a class="el" href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#gga633f43fd92e6ed5ceb87dbf570647847a82c2d77ca5266afdbdbfef23df14696b">rapidjson::kValidateErrorExclusiveMinimum</a>,
<a class="el" href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#gga633f43fd92e6ed5ceb87dbf570647847a6fea0335e9dbcd4bc86a4a7acd15cf49">rapidjson::kValidateErrorMaxLength</a>,
<br />
&#160;&#160;<a class="el" href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#gga633f43fd92e6ed5ceb87dbf570647847acb06559789b68cb387a9b9985016905e">rapidjson::kValidateErrorMinLength</a>,
<a class="el" href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#gga633f43fd92e6ed5ceb87dbf570647847aef7f31586df8214ffc68309540d81a5a">rapidjson::kValidateErrorPattern</a>,
<a class="el" href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#gga633f43fd92e6ed5ceb87dbf570647847a0aa600c87a97fc3c75f51f99517cfdfa">rapidjson::kValidateErrorMaxItems</a>,
<a class="el" href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#gga633f43fd92e6ed5ceb87dbf570647847adbf02986e366165c0ef1d89697893802">rapidjson::kValidateErrorMinItems</a>,
<br />
&#160;&#160;<a class="el" href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#gga633f43fd92e6ed5ceb87dbf570647847aebecfc4b0017d7ff7eeeb32a8c97b509">rapidjson::kValidateErrorUniqueItems</a>,
<a class="el" href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#gga633f43fd92e6ed5ceb87dbf570647847ac31340c34bc1e59d2b60318dfe665eeb">rapidjson::kValidateErrorAdditionalItems</a>,
<a class="el" href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#gga633f43fd92e6ed5ceb87dbf570647847a79537e77683e3f1c89a4b6327a5f770e">rapidjson::kValidateErrorMaxProperties</a>,
<a class="el" href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#gga633f43fd92e6ed5ceb87dbf570647847a4b9fec15f21b43bbbd617469989c620f">rapidjson::kValidateErrorMinProperties</a>,
<br />
&#160;&#160;<a class="el" href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#gga633f43fd92e6ed5ceb87dbf570647847a2d287b50e430269793dd82bb2ae91446">rapidjson::kValidateErrorRequired</a>,
<a class="el" href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#gga633f43fd92e6ed5ceb87dbf570647847a553f149c39aa16541848b04442e1032b">rapidjson::kValidateErrorAdditionalProperties</a>,
<a class="el" href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#gga633f43fd92e6ed5ceb87dbf570647847ac6f7c8c63dd5ec2c838f34c49300e0a1">rapidjson::kValidateErrorPatternProperties</a>,
<a class="el" href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#gga633f43fd92e6ed5ceb87dbf570647847ad9d2f317eae6e7a8f7eb3526a44c3962">rapidjson::kValidateErrorDependencies</a>,
<br />
&#160;&#160;<a class="el" href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#gga633f43fd92e6ed5ceb87dbf570647847a6faf5d2c20183efadf523e10287fd7c3">rapidjson::kValidateErrorEnum</a>,
<a class="el" href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#gga633f43fd92e6ed5ceb87dbf570647847a7035a7fc3f6b3a51c91be264537fc504">rapidjson::kValidateErrorType</a>,
<a class="el" href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#gga633f43fd92e6ed5ceb87dbf570647847a6e5e5914d33ee2a926362fb445343103">rapidjson::kValidateErrorOneOf</a>,
<a class="el" href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#gga633f43fd92e6ed5ceb87dbf570647847adc0a6461cdb08ae4e4d537774a7e8c6d">rapidjson::kValidateErrorOneOfMatch</a>,
<br />
&#160;&#160;<a class="el" href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#gga633f43fd92e6ed5ceb87dbf570647847af47261845396dff12763a9be8c11f666">rapidjson::kValidateErrorAllOf</a>,
<a class="el" href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#gga633f43fd92e6ed5ceb87dbf570647847aaba92c1f6cbea5e14e5e8d8b86b042d4">rapidjson::kValidateErrorAnyOf</a>,
<a class="el" href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#gga633f43fd92e6ed5ceb87dbf570647847a825119358f037a9d221d2f5735776429">rapidjson::kValidateErrorNot</a>
<br />
}</td></tr>
<tr class="memdesc:ga633f43fd92e6ed5ceb87dbf570647847"><td class="mdescLeft">&#160;</td><td class="mdescRight">Error codes when validating. <a href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#ga633f43fd92e6ed5ceb87dbf570647847">More...</a><br /></td></tr>
<tr class="separator:ga633f43fd92e6ed5ceb87dbf570647847"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gade540ee4cc2a416c23b8ee2c12393c7b"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#gade540ee4cc2a416c23b8ee2c12393c7b">rapidjson::PointerParseErrorCode</a> { <br />
&#160;&#160;<a class="el" href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#ggade540ee4cc2a416c23b8ee2c12393c7ba9094f236b2ec70c42f1ea91dffc1e39b">rapidjson::kPointerParseErrorNone</a> = 0,
<a class="el" href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#ggade540ee4cc2a416c23b8ee2c12393c7ba2f2f8b238e201b7d540e8914bbfd2bed">rapidjson::kPointerParseErrorTokenMustBeginWithSolidus</a>,
<a class="el" href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#ggade540ee4cc2a416c23b8ee2c12393c7ba907c9fe4e541b257513e3a18635379f7">rapidjson::kPointerParseErrorInvalidEscape</a>,
<a class="el" href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#ggade540ee4cc2a416c23b8ee2c12393c7ba29831a02b8ee23a05d552b47f4d64d28">rapidjson::kPointerParseErrorInvalidPercentEncoding</a>,
<br />
&#160;&#160;<a class="el" href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#ggade540ee4cc2a416c23b8ee2c12393c7bae244a98f53279fda5a750f847b81c54f">rapidjson::kPointerParseErrorCharacterMustPercentEncode</a>
<br />
}</td></tr>
<tr class="memdesc:gade540ee4cc2a416c23b8ee2c12393c7b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Error code of parsing. <a href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#gade540ee4cc2a416c23b8ee2c12393c7b">More...</a><br /></td></tr>
<tr class="separator:gade540ee4cc2a416c23b8ee2c12393c7b"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:gabdaf1a7a4db30fb0e3d927fdf0fabe79"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#ga7e4636fd48d0148f102b8a13f0539d8c">RAPIDJSON_ERROR_CHARTYPE</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#gabdaf1a7a4db30fb0e3d927fdf0fabe79">rapidjson::GetParseError_En</a> (<a class="el" href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#ga7d3acf640886b1f2552dc8c4cd6dea60">ParseErrorCode</a> parseErrorCode)</td></tr>
<tr class="memdesc:gabdaf1a7a4db30fb0e3d927fdf0fabe79"><td class="mdescLeft">&#160;</td><td class="mdescRight">Maps error code of parsing into error message. <a href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#gabdaf1a7a4db30fb0e3d927fdf0fabe79">More...</a><br /></td></tr>
<tr class="separator:gabdaf1a7a4db30fb0e3d927fdf0fabe79"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga68345ad2eccb3e7dfec09d188f20fe20"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#ga7e4636fd48d0148f102b8a13f0539d8c">RAPIDJSON_ERROR_CHARTYPE</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#ga68345ad2eccb3e7dfec09d188f20fe20">rapidjson::GetValidateError_En</a> (<a class="el" href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#ga633f43fd92e6ed5ceb87dbf570647847">ValidateErrorCode</a> validateErrorCode)</td></tr>
<tr class="memdesc:ga68345ad2eccb3e7dfec09d188f20fe20"><td class="mdescLeft">&#160;</td><td class="mdescRight">Maps error code of validation into error message. <a href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#ga68345ad2eccb3e7dfec09d188f20fe20">More...</a><br /></td></tr>
<tr class="separator:ga68345ad2eccb3e7dfec09d188f20fe20"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="var-members"></a>
Variables</h2></td></tr>
<tr class="memitem:ga9d6e699072f8275623a52c4892005751"><td class="memItemLeft" align="right" valign="top">const typedef <a class="el" href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#ga7e4636fd48d0148f102b8a13f0539d8c">RAPIDJSON_ERROR_CHARTYPE</a> *(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#ga9d6e699072f8275623a52c4892005751">rapidjson::GetParseErrorFunc</a> )(<a class="el" href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#ga7d3acf640886b1f2552dc8c4cd6dea60">ParseErrorCode</a>)</td></tr>
<tr class="memdesc:ga9d6e699072f8275623a52c4892005751"><td class="mdescLeft">&#160;</td><td class="mdescRight">Function pointer type of GetParseError(). <a href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#ga9d6e699072f8275623a52c4892005751">More...</a><br /></td></tr>
<tr class="separator:ga9d6e699072f8275623a52c4892005751"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga5e4d44bc16d54acb0a9697110a79a83c"><td class="memItemLeft" align="right" valign="top">const typedef <a class="el" href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#ga7e4636fd48d0148f102b8a13f0539d8c">RAPIDJSON_ERROR_CHARTYPE</a> *(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#ga5e4d44bc16d54acb0a9697110a79a83c">rapidjson::GetValidateErrorFunc</a> )(<a class="el" href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#ga633f43fd92e6ed5ceb87dbf570647847">ValidateErrorCode</a>)</td></tr>
<tr class="memdesc:ga5e4d44bc16d54acb0a9697110a79a83c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Function pointer type of GetValidateError(). <a href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#ga5e4d44bc16d54acb0a9697110a79a83c">More...</a><br /></td></tr>
<tr class="separator:ga5e4d44bc16d54acb0a9697110a79a83c"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<hr/><h2 class="groupheader">Class Documentation</h2>
<a name="structrapidjson_1_1_parse_result" id="structrapidjson_1_1_parse_result"></a>
<h2 class="memtitle"><span class="permalink"><a href="#structrapidjson_1_1_parse_result">&#9670;&nbsp;</a></span>rapidjson::ParseResult</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">struct rapidjson::ParseResult</td>
</tr>
</table>
</div><div class="memdoc">
<div class="textblock"><p>Result of parsing (wraps ParseErrorCode) </p>
<div class="fragment"><div class="line"><a class="code" href="namespacerapidjson.html#ace11b5b575baf1cccd5ba5f8586dcdc8">Document</a> doc;</div>
<div class="line"><a class="code" href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#a0f03679d5fa2736d9e351541e767fac1">ParseResult</a> ok = doc.Parse(<span class="stringliteral">&quot;[42]&quot;</span>);</div>
<div class="line"><span class="keywordflow">if</span> (!ok) {</div>
<div class="line"> fprintf(stderr, <span class="stringliteral">&quot;JSON parse error: %s (%u)&quot;</span>,</div>
<div class="line"> <a class="code" href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#gabdaf1a7a4db30fb0e3d927fdf0fabe79">GetParseError_En</a>(ok.Code()), ok.Offset());</div>
<div class="line"> exit(EXIT_FAILURE);</div>
<div class="line">}</div>
</div><!-- fragment --> <dl class="section see"><dt>See also</dt><dd><a class="el" href="classrapidjson_1_1_generic_reader.html#ac9c540b77de19661f6f45e04b9b0937b" title="Parse JSON text.">GenericReader::Parse</a>, <a class="el" href="classrapidjson_1_1_generic_document.html#aea842b533a858c9a3861451ad9e8642c" title="Parse JSON text from a read-only string (with Encoding conversion)">GenericDocument::Parse</a> </dd></dl>
</div><table class="memberdecls">
<tr><td colspan="2"><h3>Public Types</h3></td></tr>
<tr class="memitem:aff2daa285445bba8f76578ea274e34a3"><td class="memItemLeft" align="right" valign="top"><a id="aff2daa285445bba8f76578ea274e34a3"></a>
typedef bool(ParseResult::*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#aff2daa285445bba8f76578ea274e34a3">BooleanType</a>) () const</td></tr>
<tr class="memdesc:aff2daa285445bba8f76578ea274e34a3"><td class="mdescLeft">&#160;</td><td class="mdescRight">! Unspecified boolean type <br /></td></tr>
<tr class="separator:aff2daa285445bba8f76578ea274e34a3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><h3>Public Member Functions</h3></td></tr>
<tr class="memitem:a0f03679d5fa2736d9e351541e767fac1"><td class="memItemLeft" align="right" valign="top"><a id="a0f03679d5fa2736d9e351541e767fac1"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#a0f03679d5fa2736d9e351541e767fac1">ParseResult</a> ()</td></tr>
<tr class="memdesc:a0f03679d5fa2736d9e351541e767fac1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Default constructor, no error. <br /></td></tr>
<tr class="separator:a0f03679d5fa2736d9e351541e767fac1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad15710045513f13ba526753c4a2cb59b"><td class="memItemLeft" align="right" valign="top"><a id="ad15710045513f13ba526753c4a2cb59b"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#ad15710045513f13ba526753c4a2cb59b">ParseResult</a> (<a class="el" href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#ga7d3acf640886b1f2552dc8c4cd6dea60">ParseErrorCode</a> code, size_t offset)</td></tr>
<tr class="memdesc:ad15710045513f13ba526753c4a2cb59b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor to set an error. <br /></td></tr>
<tr class="separator:ad15710045513f13ba526753c4a2cb59b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3c6a1f7b7dc21363a255eb10a3c0e00e"><td class="memItemLeft" align="right" valign="top"><a id="a3c6a1f7b7dc21363a255eb10a3c0e00e"></a>
<a class="el" href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#ga7d3acf640886b1f2552dc8c4cd6dea60">ParseErrorCode</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#a3c6a1f7b7dc21363a255eb10a3c0e00e">Code</a> () const</td></tr>
<tr class="memdesc:a3c6a1f7b7dc21363a255eb10a3c0e00e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the error code. <br /></td></tr>
<tr class="separator:a3c6a1f7b7dc21363a255eb10a3c0e00e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a85036788b0cfd1c676900de6f8260bd6"><td class="memItemLeft" align="right" valign="top"><a id="a85036788b0cfd1c676900de6f8260bd6"></a>
size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#a85036788b0cfd1c676900de6f8260bd6">Offset</a> () const</td></tr>
<tr class="memdesc:a85036788b0cfd1c676900de6f8260bd6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the error offset, if <a class="el" href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#ab6d87c6ce9c849f35e902fbe23f485c4">IsError()</a>, 0 otherwise. <br /></td></tr>
<tr class="separator:a85036788b0cfd1c676900de6f8260bd6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af0936ace1dc9b674e9afb75ec6145b32"><td class="memItemLeft" align="right" valign="top"><a id="af0936ace1dc9b674e9afb75ec6145b32"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#af0936ace1dc9b674e9afb75ec6145b32">operator BooleanType</a> () const</td></tr>
<tr class="memdesc:af0936ace1dc9b674e9afb75ec6145b32"><td class="mdescLeft">&#160;</td><td class="mdescRight">Explicit conversion to <code>bool</code>, returns <code>true</code>, iff !<a class="el" href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#ab6d87c6ce9c849f35e902fbe23f485c4">IsError()</a>. <br /></td></tr>
<tr class="separator:af0936ace1dc9b674e9afb75ec6145b32"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab6d87c6ce9c849f35e902fbe23f485c4"><td class="memItemLeft" align="right" valign="top"><a id="ab6d87c6ce9c849f35e902fbe23f485c4"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#ab6d87c6ce9c849f35e902fbe23f485c4">IsError</a> () const</td></tr>
<tr class="memdesc:ab6d87c6ce9c849f35e902fbe23f485c4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Whether the result is an error. <br /></td></tr>
<tr class="separator:ab6d87c6ce9c849f35e902fbe23f485c4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a53e838c5114c4770b01ba5fb4fe2ec09"><td class="memItemLeft" align="right" valign="top"><a id="a53e838c5114c4770b01ba5fb4fe2ec09"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>operator==</b> (const <a class="el" href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#structrapidjson_1_1_parse_result">ParseResult</a> &amp;that) const</td></tr>
<tr class="separator:a53e838c5114c4770b01ba5fb4fe2ec09"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a512e065514f0c55c539ef70033a3f508"><td class="memItemLeft" align="right" valign="top"><a id="a512e065514f0c55c539ef70033a3f508"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>operator==</b> (<a class="el" href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#ga7d3acf640886b1f2552dc8c4cd6dea60">ParseErrorCode</a> code) const</td></tr>
<tr class="separator:a512e065514f0c55c539ef70033a3f508"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac58540d291311724829cac7ead1bae79"><td class="memItemLeft" align="right" valign="top"><a id="ac58540d291311724829cac7ead1bae79"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>operator!=</b> (const <a class="el" href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#structrapidjson_1_1_parse_result">ParseResult</a> &amp;that) const</td></tr>
<tr class="separator:ac58540d291311724829cac7ead1bae79"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a82fc3c16d5b670e8a86630c4feb730c1"><td class="memItemLeft" align="right" valign="top"><a id="a82fc3c16d5b670e8a86630c4feb730c1"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>operator!=</b> (<a class="el" href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#ga7d3acf640886b1f2552dc8c4cd6dea60">ParseErrorCode</a> code) const</td></tr>
<tr class="separator:a82fc3c16d5b670e8a86630c4feb730c1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a17c9f7f81675283393222658d613000f"><td class="memItemLeft" align="right" valign="top"><a id="a17c9f7f81675283393222658d613000f"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#a17c9f7f81675283393222658d613000f">Clear</a> ()</td></tr>
<tr class="memdesc:a17c9f7f81675283393222658d613000f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Reset error code. <br /></td></tr>
<tr class="separator:a17c9f7f81675283393222658d613000f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a40c0bd4d6c535c57acbb5c2e656bea38"><td class="memItemLeft" align="right" valign="top"><a id="a40c0bd4d6c535c57acbb5c2e656bea38"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#a40c0bd4d6c535c57acbb5c2e656bea38">Set</a> (<a class="el" href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#ga7d3acf640886b1f2552dc8c4cd6dea60">ParseErrorCode</a> code, size_t offset=0)</td></tr>
<tr class="memdesc:a40c0bd4d6c535c57acbb5c2e656bea38"><td class="mdescLeft">&#160;</td><td class="mdescRight">Update error code and offset. <br /></td></tr>
<tr class="separator:a40c0bd4d6c535c57acbb5c2e656bea38"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><h3>Friends</h3></td></tr>
<tr class="memitem:a58c9982e833d1c74686506ac7449200c"><td class="memItemLeft" align="right" valign="top"><a id="a58c9982e833d1c74686506ac7449200c"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>operator==</b> (<a class="el" href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#ga7d3acf640886b1f2552dc8c4cd6dea60">ParseErrorCode</a> code, const <a class="el" href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#structrapidjson_1_1_parse_result">ParseResult</a> &amp;err)</td></tr>
<tr class="separator:a58c9982e833d1c74686506ac7449200c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0498aebcfdd3d4a5dcb989ee29b93d4d"><td class="memItemLeft" align="right" valign="top"><a id="a0498aebcfdd3d4a5dcb989ee29b93d4d"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>operator!=</b> (<a class="el" href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#ga7d3acf640886b1f2552dc8c4cd6dea60">ParseErrorCode</a> code, const <a class="el" href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#structrapidjson_1_1_parse_result">ParseResult</a> &amp;err)</td></tr>
<tr class="separator:a0498aebcfdd3d4a5dcb989ee29b93d4d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
</div>
</div>
<h2 class="groupheader">Macro Definition Documentation</h2>
<a id="ga7e4636fd48d0148f102b8a13f0539d8c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga7e4636fd48d0148f102b8a13f0539d8c">&#9670;&nbsp;</a></span>RAPIDJSON_ERROR_CHARTYPE</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define RAPIDJSON_ERROR_CHARTYPE&#160;&#160;&#160;char</td>
</tr>
</table>
</div><div class="memdoc">
<p>Character type of error messages. </p>
<p>The default character type is <code>char</code>. On Windows, user can define this macro as <code>TCHAR</code> for supporting both unicode/non-unicode settings. </p>
</div>
</div>
<a id="gabe2e1bd1349e5a7d6c1af78c05a98f0d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gabe2e1bd1349e5a7d6c1af78c05a98f0d">&#9670;&nbsp;</a></span>RAPIDJSON_ERROR_STRING</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define RAPIDJSON_ERROR_STRING</td>
<td>(</td>
<td class="paramtype">&#160;</td>
<td class="paramname">x</td><td>)</td>
<td>&#160;&#160;&#160;x</td>
</tr>
</table>
</div><div class="memdoc">
<p>Macro for converting string literial to <a class="el" href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#ga7e4636fd48d0148f102b8a13f0539d8c">RAPIDJSON_ERROR_CHARTYPE</a>[]. </p>
<p>By default this conversion macro does nothing. On Windows, user can define this macro as <code>_T(x)</code> for supporting both unicode/non-unicode settings. </p>
</div>
</div>
<a id="gae3689840fa6e89a241313f33b602f865"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gae3689840fa6e89a241313f33b602f865">&#9670;&nbsp;</a></span>RAPIDJSON_PARSE_ERROR</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define RAPIDJSON_PARSE_ERROR</td>
<td>(</td>
<td class="paramtype">&#160;</td>
<td class="paramname">parseErrorCode, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">&#160;</td>
<td class="paramname">offset&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>(Internal) macro to indicate and handle a parse error. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">parseErrorCode</td><td><a class="el" href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#ga7d3acf640886b1f2552dc8c4cd6dea60">rapidjson::ParseErrorCode</a> of the error </td></tr>
<tr><td class="paramname">offset</td><td>position of the error in JSON input (<code>size_t</code>)</td></tr>
</table>
</dd>
</dl>
<p>Invokes RAPIDJSON_PARSE_ERROR_NORETURN and stops the parsing.</p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#ga7f8c4265b2edda78568ae3338aaf1461" title="Macro to indicate a parse error.">RAPIDJSON_PARSE_ERROR_NORETURN</a> </dd></dl>
</div>
</div>
<a id="ga7f8c4265b2edda78568ae3338aaf1461"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga7f8c4265b2edda78568ae3338aaf1461">&#9670;&nbsp;</a></span>RAPIDJSON_PARSE_ERROR_NORETURN</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define RAPIDJSON_PARSE_ERROR_NORETURN</td>
<td>(</td>
<td class="paramtype">&#160;</td>
<td class="paramname">parseErrorCode, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">&#160;</td>
<td class="paramname">offset&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<b>Value:</b><div class="fragment"><div class="line"><a class="code" href="group___r_a_p_i_d_j_s_o_n___c_o_n_f_i_g.html#gabeba18d612187bad2ac62aed9276d47c">RAPIDJSON_MULTILINEMACRO_BEGIN \</a></div>
<div class="line"><a class="code" href="group___r_a_p_i_d_j_s_o_n___c_o_n_f_i_g.html#gabeba18d612187bad2ac62aed9276d47c"> RAPIDJSON_ASSERT</a>(!HasParseError()); <span class="comment">/* Error can only be assigned once */</span> \</div>
<div class="line"> SetParseError(parseErrorCode, offset); \</div>
<div class="line"> RAPIDJSON_MULTILINEMACRO_END</div>
</div><!-- fragment -->
<p>Macro to indicate a parse error. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">parseErrorCode</td><td><a class="el" href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#ga7d3acf640886b1f2552dc8c4cd6dea60">rapidjson::ParseErrorCode</a> of the error </td></tr>
<tr><td class="paramname">offset</td><td>position of the error in JSON input (<code>size_t</code>)</td></tr>
</table>
</dd>
</dl>
<p>This macros can be used as a customization point for the internal error handling mechanism of RapidJSON.</p>
<p>A common usage model is to throw an exception instead of requiring the caller to explicitly check the <a class="el" href="classrapidjson_1_1_generic_reader.html#ac9c540b77de19661f6f45e04b9b0937b">rapidjson::GenericReader::Parse</a>'s return value:</p>
<div class="fragment"><div class="line"><span class="preprocessor">#define RAPIDJSON_PARSE_ERROR_NORETURN(parseErrorCode,offset) \</span></div>
<div class="line"><span class="preprocessor"> throw ParseException(parseErrorCode, #parseErrorCode, offset)</span></div>
<div class="line"> </div>
<div class="line"><span class="preprocessor">#include &lt;stdexcept&gt;</span> <span class="comment">// std::runtime_error</span></div>
<div class="line"><span class="preprocessor">#include &quot;<a class="code" href="error_8h.html">rapidjson/error/error.h</a>&quot;</span> <span class="comment">// rapidjson::ParseResult</span></div>
<div class="line"> </div>
<div class="line"><span class="keyword">struct </span>ParseException : std::runtime_error, <a class="code" href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#structrapidjson_1_1_parse_result">rapidjson::ParseResult</a> {</div>
<div class="line"> ParseException(<a class="code" href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#ga7d3acf640886b1f2552dc8c4cd6dea60">rapidjson::ParseErrorCode</a> code, <span class="keyword">const</span> <span class="keywordtype">char</span>* msg, <span class="keywordtype">size_t</span> offset)</div>
<div class="line"> : std::runtime_error(msg), ParseResult(code, offset) {}</div>
<div class="line">};</div>
<div class="line"> </div>
<div class="line"><span class="preprocessor">#include &quot;<a class="code" href="reader_8h.html">rapidjson/reader.h</a>&quot;</span></div>
</div><!-- fragment --><dl class="section see"><dt>See also</dt><dd><a class="el" href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#gae3689840fa6e89a241313f33b602f865" title="(Internal) macro to indicate and handle a parse error.">RAPIDJSON_PARSE_ERROR</a>, <a class="el" href="classrapidjson_1_1_generic_reader.html#ac9c540b77de19661f6f45e04b9b0937b" title="Parse JSON text.">rapidjson::GenericReader::Parse</a> </dd></dl>
</div>
</div>
<h2 class="groupheader">Enumeration Type Documentation</h2>
<a id="ga7d3acf640886b1f2552dc8c4cd6dea60"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga7d3acf640886b1f2552dc8c4cd6dea60">&#9670;&nbsp;</a></span>ParseErrorCode</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">enum <a class="el" href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#ga7d3acf640886b1f2552dc8c4cd6dea60">rapidjson::ParseErrorCode</a></td>
</tr>
</table>
</div><div class="memdoc">
<p>Error code of parsing. </p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classrapidjson_1_1_generic_reader.html#ac9c540b77de19661f6f45e04b9b0937b" title="Parse JSON text.">GenericReader::Parse</a>, <a class="el" href="classrapidjson_1_1_generic_reader.html#a042c621cf745c5ed3a6f5ff9418dd05e" title="Get the ParseErrorCode of last parsing.">GenericReader::GetParseErrorCode</a> </dd></dl>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="gga7d3acf640886b1f2552dc8c4cd6dea60a86a60b723dca32df5debab2c3db4235f"></a>kParseErrorNone&#160;</td><td class="fielddoc"><p>No error. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga7d3acf640886b1f2552dc8c4cd6dea60a06183076357ebd9eca228666f614c286"></a>kParseErrorDocumentEmpty&#160;</td><td class="fielddoc"><p>The document is empty. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga7d3acf640886b1f2552dc8c4cd6dea60a2022599bcd4f64d58885a026f95751d5"></a>kParseErrorDocumentRootNotSingular&#160;</td><td class="fielddoc"><p>The document root must not follow by other values. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga7d3acf640886b1f2552dc8c4cd6dea60ab7fa69bce0c393cf3a2b6065111f2f57"></a>kParseErrorValueInvalid&#160;</td><td class="fielddoc"><p>Invalid value. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga7d3acf640886b1f2552dc8c4cd6dea60ab707b848425668e765def25554735242"></a>kParseErrorObjectMissName&#160;</td><td class="fielddoc"><p>Missing a name for object member. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga7d3acf640886b1f2552dc8c4cd6dea60a58e952084a0dfdbc5630f624252aef5c"></a>kParseErrorObjectMissColon&#160;</td><td class="fielddoc"><p>Missing a colon after a name of object member. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga7d3acf640886b1f2552dc8c4cd6dea60a2a81a684f39fc882ec99f07e86343f73"></a>kParseErrorObjectMissCommaOrCurlyBracket&#160;</td><td class="fielddoc"><p>Missing a comma or '}' after an object member. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga7d3acf640886b1f2552dc8c4cd6dea60a1a4ac97731f997e9591b40f98ecd9f93"></a>kParseErrorArrayMissCommaOrSquareBracket&#160;</td><td class="fielddoc"><p>Missing a comma or ']' after an array element. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga7d3acf640886b1f2552dc8c4cd6dea60a23c38bf88b8448555c0eb41e1735bd92"></a>kParseErrorStringUnicodeEscapeInvalidHex&#160;</td><td class="fielddoc"><p>Incorrect hex digit after \u escape in string. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga7d3acf640886b1f2552dc8c4cd6dea60a636209a2e516fbdb4db5ad0a83a6b386"></a>kParseErrorStringUnicodeSurrogateInvalid&#160;</td><td class="fielddoc"><p>The surrogate pair in string is invalid. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga7d3acf640886b1f2552dc8c4cd6dea60a8dd0af5e6103a6503c61c38cb2b0bab9"></a>kParseErrorStringEscapeInvalid&#160;</td><td class="fielddoc"><p>Invalid escape character in string. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga7d3acf640886b1f2552dc8c4cd6dea60af7daa91caa53abb881ea231a874a4f40"></a>kParseErrorStringMissQuotationMark&#160;</td><td class="fielddoc"><p>Missing a closing quotation mark in string. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga7d3acf640886b1f2552dc8c4cd6dea60a62ce0f5c74e4ab34ac325d2adda8fa8f"></a>kParseErrorStringInvalidEncoding&#160;</td><td class="fielddoc"><p>Invalid encoding in string. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga7d3acf640886b1f2552dc8c4cd6dea60a240cebadea89f7282ab263b5a22c9805"></a>kParseErrorNumberTooBig&#160;</td><td class="fielddoc"><p>Number too big to be stored in double. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga7d3acf640886b1f2552dc8c4cd6dea60ac840ece3ba6874fe6f16c01ebb71031f"></a>kParseErrorNumberMissFraction&#160;</td><td class="fielddoc"><p>Miss fraction part in number. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga7d3acf640886b1f2552dc8c4cd6dea60a28a1c720ae63560780ccd992dc999ab7"></a>kParseErrorNumberMissExponent&#160;</td><td class="fielddoc"><p>Miss exponent in number. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga7d3acf640886b1f2552dc8c4cd6dea60ab250f87c3d8454c579364b5a0f697a50"></a>kParseErrorTermination&#160;</td><td class="fielddoc"><p>Parsing was terminated. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga7d3acf640886b1f2552dc8c4cd6dea60a7abf1a337294d984a3f4d18b5843fb24"></a>kParseErrorUnspecificSyntaxError&#160;</td><td class="fielddoc"><p>Unspecific syntax error. </p>
</td></tr>
</table>
</div>
</div>
<a id="gade540ee4cc2a416c23b8ee2c12393c7b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gade540ee4cc2a416c23b8ee2c12393c7b">&#9670;&nbsp;</a></span>PointerParseErrorCode</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">enum <a class="el" href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#gade540ee4cc2a416c23b8ee2c12393c7b">rapidjson::PointerParseErrorCode</a></td>
</tr>
</table>
</div><div class="memdoc">
<p>Error code of parsing. </p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classrapidjson_1_1_generic_pointer.html#aa077ce171ea25cf501c12f2d5df7f248" title="Default constructor.">GenericPointer::GenericPointer</a>, GenericPointer::GetParseErrorCode </dd></dl>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="ggade540ee4cc2a416c23b8ee2c12393c7ba9094f236b2ec70c42f1ea91dffc1e39b"></a>kPointerParseErrorNone&#160;</td><td class="fielddoc"><p>The parse is successful. </p>
</td></tr>
<tr><td class="fieldname"><a id="ggade540ee4cc2a416c23b8ee2c12393c7ba2f2f8b238e201b7d540e8914bbfd2bed"></a>kPointerParseErrorTokenMustBeginWithSolidus&#160;</td><td class="fielddoc"><p>A token must begin with a '/'. </p>
</td></tr>
<tr><td class="fieldname"><a id="ggade540ee4cc2a416c23b8ee2c12393c7ba907c9fe4e541b257513e3a18635379f7"></a>kPointerParseErrorInvalidEscape&#160;</td><td class="fielddoc"><p>Invalid escape. </p>
</td></tr>
<tr><td class="fieldname"><a id="ggade540ee4cc2a416c23b8ee2c12393c7ba29831a02b8ee23a05d552b47f4d64d28"></a>kPointerParseErrorInvalidPercentEncoding&#160;</td><td class="fielddoc"><p>Invalid percent encoding in URI fragment. </p>
</td></tr>
<tr><td class="fieldname"><a id="ggade540ee4cc2a416c23b8ee2c12393c7bae244a98f53279fda5a750f847b81c54f"></a>kPointerParseErrorCharacterMustPercentEncode&#160;</td><td class="fielddoc"><p>A character must percent encoded in URI fragment. </p>
</td></tr>
</table>
</div>
</div>
<a id="ga633f43fd92e6ed5ceb87dbf570647847"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga633f43fd92e6ed5ceb87dbf570647847">&#9670;&nbsp;</a></span>ValidateErrorCode</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">enum <a class="el" href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#ga633f43fd92e6ed5ceb87dbf570647847">rapidjson::ValidateErrorCode</a></td>
</tr>
</table>
</div><div class="memdoc">
<p>Error codes when validating. </p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classrapidjson_1_1_generic_schema_validator.html" title="JSON Schema Validator.">GenericSchemaValidator</a> </dd></dl>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="gga633f43fd92e6ed5ceb87dbf570647847a05469e37a2917fef9822eaf9e2dfd60e"></a>kValidateErrors&#160;</td><td class="fielddoc"><p>Top level error code when kValidateContinueOnErrorsFlag set. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga633f43fd92e6ed5ceb87dbf570647847a569afaca49e48ee8bd928284409dcab5"></a>kValidateErrorNone&#160;</td><td class="fielddoc"><p>No error. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga633f43fd92e6ed5ceb87dbf570647847aa01437cd68a424643a8d9c12c1a3ff5a"></a>kValidateErrorMultipleOf&#160;</td><td class="fielddoc"><p>Number is not a multiple of the 'multipleOf' value. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga633f43fd92e6ed5ceb87dbf570647847a5338314546adf96b80b1da045478c89b"></a>kValidateErrorMaximum&#160;</td><td class="fielddoc"><p>Number is greater than the 'maximum' value. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga633f43fd92e6ed5ceb87dbf570647847a88597e022ffccc312d5169a87dff6cff"></a>kValidateErrorExclusiveMaximum&#160;</td><td class="fielddoc"><p>Number is greater than or equal to the 'maximum' value. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga633f43fd92e6ed5ceb87dbf570647847ad365b8abebe4008652940df0a5add9c4"></a>kValidateErrorMinimum&#160;</td><td class="fielddoc"><p>Number is less than the 'minimum' value. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga633f43fd92e6ed5ceb87dbf570647847a82c2d77ca5266afdbdbfef23df14696b"></a>kValidateErrorExclusiveMinimum&#160;</td><td class="fielddoc"><p>Number is less than or equal to the 'minimum' value. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga633f43fd92e6ed5ceb87dbf570647847a6fea0335e9dbcd4bc86a4a7acd15cf49"></a>kValidateErrorMaxLength&#160;</td><td class="fielddoc"><p>String is longer than the 'maxLength' value. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga633f43fd92e6ed5ceb87dbf570647847acb06559789b68cb387a9b9985016905e"></a>kValidateErrorMinLength&#160;</td><td class="fielddoc"><p>String is longer than the 'maxLength' value. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga633f43fd92e6ed5ceb87dbf570647847aef7f31586df8214ffc68309540d81a5a"></a>kValidateErrorPattern&#160;</td><td class="fielddoc"><p>String does not match the 'pattern' regular expression. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga633f43fd92e6ed5ceb87dbf570647847a0aa600c87a97fc3c75f51f99517cfdfa"></a>kValidateErrorMaxItems&#160;</td><td class="fielddoc"><p>Array is longer than the 'maxItems' value. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga633f43fd92e6ed5ceb87dbf570647847adbf02986e366165c0ef1d89697893802"></a>kValidateErrorMinItems&#160;</td><td class="fielddoc"><p>Array is shorter than the 'minItems' value. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga633f43fd92e6ed5ceb87dbf570647847aebecfc4b0017d7ff7eeeb32a8c97b509"></a>kValidateErrorUniqueItems&#160;</td><td class="fielddoc"><p>Array has duplicate items but 'uniqueItems' is true. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga633f43fd92e6ed5ceb87dbf570647847ac31340c34bc1e59d2b60318dfe665eeb"></a>kValidateErrorAdditionalItems&#160;</td><td class="fielddoc"><p>Array has additional items that are not allowed by the schema. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga633f43fd92e6ed5ceb87dbf570647847a79537e77683e3f1c89a4b6327a5f770e"></a>kValidateErrorMaxProperties&#160;</td><td class="fielddoc"><p>Object has more members than 'maxProperties' value. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga633f43fd92e6ed5ceb87dbf570647847a4b9fec15f21b43bbbd617469989c620f"></a>kValidateErrorMinProperties&#160;</td><td class="fielddoc"><p>Object has less members than 'minProperties' value. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga633f43fd92e6ed5ceb87dbf570647847a2d287b50e430269793dd82bb2ae91446"></a>kValidateErrorRequired&#160;</td><td class="fielddoc"><p>Object is missing one or more members required by the schema. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga633f43fd92e6ed5ceb87dbf570647847a553f149c39aa16541848b04442e1032b"></a>kValidateErrorAdditionalProperties&#160;</td><td class="fielddoc"><p>Object has additional members that are not allowed by the schema. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga633f43fd92e6ed5ceb87dbf570647847ac6f7c8c63dd5ec2c838f34c49300e0a1"></a>kValidateErrorPatternProperties&#160;</td><td class="fielddoc"><p>See other errors. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga633f43fd92e6ed5ceb87dbf570647847ad9d2f317eae6e7a8f7eb3526a44c3962"></a>kValidateErrorDependencies&#160;</td><td class="fielddoc"><p>Object has missing property or schema dependencies. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga633f43fd92e6ed5ceb87dbf570647847a6faf5d2c20183efadf523e10287fd7c3"></a>kValidateErrorEnum&#160;</td><td class="fielddoc"><p>Property has a value that is not one of its allowed enumerated values. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga633f43fd92e6ed5ceb87dbf570647847a7035a7fc3f6b3a51c91be264537fc504"></a>kValidateErrorType&#160;</td><td class="fielddoc"><p>Property has a type that is not allowed by the schema.. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga633f43fd92e6ed5ceb87dbf570647847a6e5e5914d33ee2a926362fb445343103"></a>kValidateErrorOneOf&#160;</td><td class="fielddoc"><p>Property did not match any of the sub-schemas specified by 'oneOf'. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga633f43fd92e6ed5ceb87dbf570647847adc0a6461cdb08ae4e4d537774a7e8c6d"></a>kValidateErrorOneOfMatch&#160;</td><td class="fielddoc"><p>Property matched more than one of the sub-schemas specified by 'oneOf'. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga633f43fd92e6ed5ceb87dbf570647847af47261845396dff12763a9be8c11f666"></a>kValidateErrorAllOf&#160;</td><td class="fielddoc"><p>Property did not match all of the sub-schemas specified by 'allOf'. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga633f43fd92e6ed5ceb87dbf570647847aaba92c1f6cbea5e14e5e8d8b86b042d4"></a>kValidateErrorAnyOf&#160;</td><td class="fielddoc"><p>Property did not match any of the sub-schemas specified by 'anyOf'. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga633f43fd92e6ed5ceb87dbf570647847a825119358f037a9d221d2f5735776429"></a>kValidateErrorNot&#160;</td><td class="fielddoc"><p>Property matched the sub-schema specified by 'not'. </p>
</td></tr>
</table>
</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a id="gabdaf1a7a4db30fb0e3d927fdf0fabe79"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gabdaf1a7a4db30fb0e3d927fdf0fabe79">&#9670;&nbsp;</a></span>GetParseError_En()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">const <a class="el" href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#ga7e4636fd48d0148f102b8a13f0539d8c">RAPIDJSON_ERROR_CHARTYPE</a>* rapidjson::GetParseError_En </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#ga7d3acf640886b1f2552dc8c4cd6dea60">ParseErrorCode</a>&#160;</td>
<td class="paramname"><em>parseErrorCode</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Maps error code of parsing into error message. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">parseErrorCode</td><td>Error code obtained in parsing. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the error message. </dd></dl>
<dl class="section note"><dt>Note</dt><dd>User can make a copy of this function for localization. Using switch-case is safer for future modification of error codes. </dd></dl>
</div>
</div>
<a id="ga68345ad2eccb3e7dfec09d188f20fe20"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga68345ad2eccb3e7dfec09d188f20fe20">&#9670;&nbsp;</a></span>GetValidateError_En()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">const <a class="el" href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#ga7e4636fd48d0148f102b8a13f0539d8c">RAPIDJSON_ERROR_CHARTYPE</a>* rapidjson::GetValidateError_En </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#ga633f43fd92e6ed5ceb87dbf570647847">ValidateErrorCode</a>&#160;</td>
<td class="paramname"><em>validateErrorCode</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Maps error code of validation into error message. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">validateErrorCode</td><td>Error code obtained from validator. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the error message. </dd></dl>
<dl class="section note"><dt>Note</dt><dd>User can make a copy of this function for localization. Using switch-case is safer for future modification of error codes. </dd></dl>
</div>
</div>
<h2 class="groupheader">Variable Documentation</h2>
<a id="ga9d6e699072f8275623a52c4892005751"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga9d6e699072f8275623a52c4892005751">&#9670;&nbsp;</a></span>GetParseErrorFunc</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">const typedef <a class="el" href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#ga7e4636fd48d0148f102b8a13f0539d8c">RAPIDJSON_ERROR_CHARTYPE</a>*(* rapidjson::GetParseErrorFunc) (<a class="el" href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#ga7d3acf640886b1f2552dc8c4cd6dea60">ParseErrorCode</a>)</td>
</tr>
</table>
</div><div class="memdoc">
<p>Function pointer type of GetParseError(). </p>
<p>This is the prototype for <code>GetParseError_X()</code>, where <code>X</code> is a locale. User can dynamically change locale in runtime, e.g.: </p><div class="fragment"><div class="line"><a class="code" href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#ga9d6e699072f8275623a52c4892005751">GetParseErrorFunc</a> GetParseError = <a class="code" href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#gabdaf1a7a4db30fb0e3d927fdf0fabe79">GetParseError_En</a>; <span class="comment">// or whatever</span></div>
<div class="line"><span class="keyword">const</span> <a class="code" href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#ga7e4636fd48d0148f102b8a13f0539d8c">RAPIDJSON_ERROR_CHARTYPE</a>* s = GetParseError(document.GetParseErrorCode());</div>
</div><!-- fragment -->
</div>
</div>
<a id="ga5e4d44bc16d54acb0a9697110a79a83c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga5e4d44bc16d54acb0a9697110a79a83c">&#9670;&nbsp;</a></span>GetValidateErrorFunc</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">const typedef <a class="el" href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#ga7e4636fd48d0148f102b8a13f0539d8c">RAPIDJSON_ERROR_CHARTYPE</a>*(* rapidjson::GetValidateErrorFunc) (<a class="el" href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#ga633f43fd92e6ed5ceb87dbf570647847">ValidateErrorCode</a>)</td>
</tr>
</table>
</div><div class="memdoc">
<p>Function pointer type of GetValidateError(). </p>
<p>This is the prototype for <code>GetValidateError_X()</code>, where <code>X</code> is a locale. User can dynamically change locale in runtime, e.g.: </p><div class="fragment"><div class="line"><a class="code" href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#ga5e4d44bc16d54acb0a9697110a79a83c">GetValidateErrorFunc</a> GetValidateError = <a class="code" href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#ga68345ad2eccb3e7dfec09d188f20fe20">GetValidateError_En</a>; <span class="comment">// or whatever</span></div>
<div class="line"><span class="keyword">const</span> <a class="code" href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#ga7e4636fd48d0148f102b8a13f0539d8c">RAPIDJSON_ERROR_CHARTYPE</a>* s = GetValidateError(validator.GetInvalidSchemaCode());</div>
</div><!-- fragment -->
</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<div class="ttc" id="agroup___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s_html_structrapidjson_1_1_parse_result"><div class="ttname"><a href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#structrapidjson_1_1_parse_result">rapidjson::ParseResult</a></div><div class="ttdoc">Result of parsing (wraps ParseErrorCode)</div><div class="ttdef"><b>Definition:</b> error.h:106</div></div>
<div class="ttc" id="agroup___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s_html_ga68345ad2eccb3e7dfec09d188f20fe20"><div class="ttname"><a href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#ga68345ad2eccb3e7dfec09d188f20fe20">rapidjson::GetValidateError_En</a></div><div class="ttdeci">const RAPIDJSON_ERROR_CHARTYPE * GetValidateError_En(ValidateErrorCode validateErrorCode)</div><div class="ttdoc">Maps error code of validation into error message.</div><div class="ttdef"><b>Definition:</b> en.h:76</div></div>
<div class="ttc" id="agroup___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s_html_ga5e4d44bc16d54acb0a9697110a79a83c"><div class="ttname"><a href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#ga5e4d44bc16d54acb0a9697110a79a83c">rapidjson::GetValidateErrorFunc</a></div><div class="ttdeci">const typedef RAPIDJSON_ERROR_CHARTYPE *(* GetValidateErrorFunc)(ValidateErrorCode)</div><div class="ttdoc">Function pointer type of GetValidateError().</div><div class="ttdef"><b>Definition:</b> error.h:208</div></div>
<div class="ttc" id="agroup___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s_html_ga7d3acf640886b1f2552dc8c4cd6dea60"><div class="ttname"><a href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#ga7d3acf640886b1f2552dc8c4cd6dea60">rapidjson::ParseErrorCode</a></div><div class="ttdeci">ParseErrorCode</div><div class="ttdoc">Error code of parsing.</div><div class="ttdef"><b>Definition:</b> error.h:64</div></div>
<div class="ttc" id="agroup___r_a_p_i_d_j_s_o_n___c_o_n_f_i_g_html_gabeba18d612187bad2ac62aed9276d47c"><div class="ttname"><a href="group___r_a_p_i_d_j_s_o_n___c_o_n_f_i_g.html#gabeba18d612187bad2ac62aed9276d47c">RAPIDJSON_ASSERT</a></div><div class="ttdeci">#define RAPIDJSON_ASSERT(x)</div><div class="ttdoc">Assertion.</div><div class="ttdef"><b>Definition:</b> rapidjson.h:437</div></div>
<div class="ttc" id="aerror_8h_html"><div class="ttname"><a href="error_8h.html">error.h</a></div></div>
<div class="ttc" id="areader_8h_html"><div class="ttname"><a href="reader_8h.html">reader.h</a></div></div>
<div class="ttc" id="agroup___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s_html_ga7e4636fd48d0148f102b8a13f0539d8c"><div class="ttname"><a href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#ga7e4636fd48d0148f102b8a13f0539d8c">RAPIDJSON_ERROR_CHARTYPE</a></div><div class="ttdeci">#define RAPIDJSON_ERROR_CHARTYPE</div><div class="ttdoc">Character type of error messages.</div><div class="ttdef"><b>Definition:</b> error.h:39</div></div>
<div class="ttc" id="agroup___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s_html_ga9d6e699072f8275623a52c4892005751"><div class="ttname"><a href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#ga9d6e699072f8275623a52c4892005751">rapidjson::GetParseErrorFunc</a></div><div class="ttdeci">const typedef RAPIDJSON_ERROR_CHARTYPE *(* GetParseErrorFunc)(ParseErrorCode)</div><div class="ttdoc">Function pointer type of GetParseError().</div><div class="ttdef"><b>Definition:</b> error.h:153</div></div>
<div class="ttc" id="anamespacerapidjson_html_ace11b5b575baf1cccd5ba5f8586dcdc8"><div class="ttname"><a href="namespacerapidjson.html#ace11b5b575baf1cccd5ba5f8586dcdc8">rapidjson::Document</a></div><div class="ttdeci">GenericDocument&lt; UTF8&lt;&gt; &gt; Document</div><div class="ttdoc">GenericDocument with UTF8 encoding.</div><div class="ttdef"><b>Definition:</b> document.h:2873</div></div>
<div class="ttc" id="agroup___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s_html_a0f03679d5fa2736d9e351541e767fac1"><div class="ttname"><a href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#a0f03679d5fa2736d9e351541e767fac1">rapidjson::ParseResult::ParseResult</a></div><div class="ttdeci">ParseResult()</div><div class="ttdoc">Default constructor, no error.</div><div class="ttdef"><b>Definition:</b> error.h:111</div></div>
<div class="ttc" id="agroup___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s_html_gabdaf1a7a4db30fb0e3d927fdf0fabe79"><div class="ttname"><a href="group___r_a_p_i_d_j_s_o_n___e_r_r_o_r_s.html#gabdaf1a7a4db30fb0e3d927fdf0fabe79">rapidjson::GetParseError_En</a></div><div class="ttdeci">const RAPIDJSON_ERROR_CHARTYPE * GetParseError_En(ParseErrorCode parseErrorCode)</div><div class="ttdoc">Maps error code of parsing into error message.</div><div class="ttdef"><b>Definition:</b> en.h:36</div></div>
<!-- HTML footer for doxygen 1.8.7-->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
</ul>
</div>
</body>
</html>