mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-21 11:35:53 +00:00
412 lines
91 KiB
HTML
412 lines
91 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://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.17"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
<title>rippled: ErrorCodes.cpp Source File</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="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>
|
|
<link href="doxygen.css" rel="stylesheet" type="text/css" />
|
|
</head>
|
|
<body>
|
|
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
|
<div id="titlearea">
|
|
<table cellspacing="0" cellpadding="0">
|
|
<tbody>
|
|
<tr style="height: 56px;">
|
|
<td id="projectalign" style="padding-left: 0.5em;">
|
|
<div id="projectname">rippled
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.8.17 -->
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
|
var searchBox = new SearchBox("searchBox", "search",false,'Search');
|
|
/* @license-end */
|
|
</script>
|
|
<script type="text/javascript" src="menudata.js"></script>
|
|
<script type="text/javascript" src="menu.js"></script>
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
|
$(function() {
|
|
initMenu('',true,false,'search.php','Search');
|
|
$(document).ready(function() { init_search(); });
|
|
});
|
|
/* @license-end */</script>
|
|
<div id="main-nav"></div>
|
|
<!-- 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 id="nav-path" class="navpath">
|
|
<ul>
|
|
<li class="navelem"><a class="el" href="dir_df9c78dcf3f59a33b12284f95992a64b.html">ripple</a></li><li class="navelem"><a class="el" href="dir_1e765e6a8d5970800a535eb2615ec474.html">protocol</a></li><li class="navelem"><a class="el" href="dir_41c387a0f328eeb295307369675c1162.html">impl</a></li> </ul>
|
|
</div>
|
|
</div><!-- top -->
|
|
<div class="header">
|
|
<div class="headertitle">
|
|
<div class="title">ErrorCodes.cpp</div> </div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">//------------------------------------------------------------------------------</span></div>
|
|
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment">/*</span></div>
|
|
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment"> This file is part of rippled: https://github.com/ripple/rippled</span></div>
|
|
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment"> Copyright (c) 2012 - 2019 Ripple Labs Inc.</span></div>
|
|
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment"></span> </div>
|
|
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment"> Permission to use, copy, modify, and/or distribute this software for any</span></div>
|
|
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment"> purpose with or without fee is hereby granted, provided that the above</span></div>
|
|
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment"> copyright notice and this permission notice appear in all copies.</span></div>
|
|
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment"></span> </div>
|
|
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment"> THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES</span></div>
|
|
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment"> WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF</span></div>
|
|
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment"> MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR</span></div>
|
|
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment"> ANY SPECIAL , DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES</span></div>
|
|
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="comment"> WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN</span></div>
|
|
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="comment"> ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF</span></div>
|
|
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="comment"> OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.</span></div>
|
|
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="comment">*/</span></div>
|
|
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="comment">//==============================================================================</span></div>
|
|
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span>  </div>
|
|
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="preprocessor">#include <ripple/protocol/ErrorCodes.h></span></div>
|
|
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="preprocessor">#include <<a class="codeRef" href="http://en.cppreference.com/w/cpp/header/cassert.html">cassert</a>></span></div>
|
|
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="preprocessor">#include <<a class="codeRef" href="http://en.cppreference.com/w/cpp/header/stdexcept.html">stdexcept</a>></span></div>
|
|
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span>  </div>
|
|
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="keyword">namespace </span><a class="code" href="namespaceripple.html">ripple</a> {</div>
|
|
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="keyword">namespace </span>RPC {</div>
|
|
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span>  </div>
|
|
<div class="line"><a name="l00027"></a><span class="lineno"><a class="line" href="namespaceripple_1_1RPC_1_1detail.html"> 27</a></span> <span class="keyword">namespace </span>detail {</div>
|
|
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>  </div>
|
|
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="comment">// Unordered array of ErrorInfos, so we don't have to maintain the list</span></div>
|
|
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="comment">// ordering by hand.</span></div>
|
|
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <span class="comment">//</span></div>
|
|
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span> <span class="comment">// This array will be omitted from the object file; only the sorted version</span></div>
|
|
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span> <span class="comment">// will remain in the object file. But the string literals will remain.</span></div>
|
|
<div class="line"><a name="l00034"></a><span class="lineno"><a class="line" href="namespaceripple_1_1RPC_1_1detail.html#a1c421dba7e45127b0b9173b56ec5d34e"> 34</a></span> constexpr <span class="keyword">static</span> <a class="code" href="structripple_1_1RPC_1_1ErrorInfo.html">ErrorInfo</a> <a class="code" href="namespaceripple_1_1RPC_1_1detail.html#a1c421dba7e45127b0b9173b56ec5d34e">unorderedErrorInfos</a>[]{</div>
|
|
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  {<a class="code" href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932a4fba57dbbed9bfaa196e1a0e0915dc8a">rpcACT_MALFORMED</a>, <span class="stringliteral">"actMalformed"</span>, <span class="stringliteral">"Account malformed."</span>},</div>
|
|
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  {<a class="code" href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932a044301ed3c32624aade5888d1c60566f">rpcACT_NOT_FOUND</a>, <span class="stringliteral">"actNotFound"</span>, <span class="stringliteral">"Account not found."</span>},</div>
|
|
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  {<a class="code" href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932a63fd0c00dcecf06df448bf7eddf6bd8c">rpcALREADY_MULTISIG</a>, <span class="stringliteral">"alreadyMultisig"</span>, <span class="stringliteral">"Already multisigned."</span>},</div>
|
|
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  {<a class="code" href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932a11b93b10f2466e402c74aa4a9b5cb2f7">rpcALREADY_SINGLE_SIG</a>, <span class="stringliteral">"alreadySingleSig"</span>, <span class="stringliteral">"Already single-signed."</span>},</div>
|
|
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  {<a class="code" href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932a1c4319d23e52800c6dc951ed7d343cea">rpcAMENDMENT_BLOCKED</a>,</div>
|
|
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  <span class="stringliteral">"amendmentBlocked"</span>,</div>
|
|
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  <span class="stringliteral">"Amendment blocked, need upgrade."</span>},</div>
|
|
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  {<a class="code" href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932a7a140417a251408888375e3b6c0cfcd5">rpcEXPIRED_VALIDATOR_LIST</a>, <span class="stringliteral">"unlBlocked"</span>, <span class="stringliteral">"Validator list expired."</span>},</div>
|
|
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  {<a class="code" href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932a19bc14d53a84c5b1d5c1693aa0e9e317">rpcATX_DEPRECATED</a>,</div>
|
|
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  <span class="stringliteral">"deprecated"</span>,</div>
|
|
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  <span class="stringliteral">"Use the new API or specify a ledger range."</span>},</div>
|
|
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  {<a class="code" href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932a5b391b66e90a1cb080cf29d83141853d">rpcBAD_KEY_TYPE</a>, <span class="stringliteral">"badKeyType"</span>, <span class="stringliteral">"Bad key type."</span>},</div>
|
|
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  {<a class="code" href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932a5a9afe2f583b5c5e615979d14c00e7bd">rpcBAD_FEATURE</a>, <span class="stringliteral">"badFeature"</span>, <span class="stringliteral">"Feature unknown or invalid."</span>},</div>
|
|
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  {<a class="code" href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932a06d57c943aeb0aff8b6d87d64cbcfa04">rpcBAD_ISSUER</a>, <span class="stringliteral">"badIssuer"</span>, <span class="stringliteral">"Issuer account malformed."</span>},</div>
|
|
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  {<a class="code" href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932a64f2f624cc4844b4907be821dccabbd9">rpcBAD_MARKET</a>, <span class="stringliteral">"badMarket"</span>, <span class="stringliteral">"No such market."</span>},</div>
|
|
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  {<a class="code" href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932a888a186bc5ae79d68140783e22298394">rpcBAD_SECRET</a>, <span class="stringliteral">"badSecret"</span>, <span class="stringliteral">"Secret does not match account."</span>},</div>
|
|
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  {<a class="code" href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932ad2f8f023342d32f2602688202894cabe">rpcBAD_SEED</a>, <span class="stringliteral">"badSeed"</span>, <span class="stringliteral">"Disallowed seed."</span>},</div>
|
|
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  {<a class="code" href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932a89a147d7376535a497c85024dabc9167">rpcBAD_SYNTAX</a>, <span class="stringliteral">"badSyntax"</span>, <span class="stringliteral">"Syntax error."</span>},</div>
|
|
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  {<a class="code" href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932aa67c34c5d359f52c3f1fdcf2ce06dbc9">rpcCHANNEL_MALFORMED</a>, <span class="stringliteral">"channelMalformed"</span>, <span class="stringliteral">"Payment channel is malformed."</span>},</div>
|
|
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  {<a class="code" href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932a60badd0db2ef5b154d6101fe7b845e39">rpcCHANNEL_AMT_MALFORMED</a>,</div>
|
|
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  <span class="stringliteral">"channelAmtMalformed"</span>,</div>
|
|
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  <span class="stringliteral">"Payment channel amount is malformed."</span>},</div>
|
|
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  {<a class="code" href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932ab86d56c66edde43e490eec3de23deb47">rpcCOMMAND_MISSING</a>, <span class="stringliteral">"commandMissing"</span>, <span class="stringliteral">"Missing command entry."</span>},</div>
|
|
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  {<a class="code" href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932aec50f1af38ef002318ef8f19ca27560c">rpcDB_DESERIALIZATION</a>,</div>
|
|
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  <span class="stringliteral">"dbDeserialization"</span>,</div>
|
|
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  <span class="stringliteral">"Database deserialization error."</span>},</div>
|
|
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  {<a class="code" href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932ac88bf3c7097096c5ed0fc4d354e91950">rpcDST_ACT_MALFORMED</a>,</div>
|
|
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  <span class="stringliteral">"dstActMalformed"</span>,</div>
|
|
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  <span class="stringliteral">"Destination account is malformed."</span>},</div>
|
|
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  {<a class="code" href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932a04a908ae049e097e9e7896ba3deef874">rpcDST_ACT_MISSING</a>, <span class="stringliteral">"dstActMissing"</span>, <span class="stringliteral">"Destination account not provided."</span>},</div>
|
|
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  {<a class="code" href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932aec93776d4f8dd6d4dac1ac2a447d196a">rpcDST_ACT_NOT_FOUND</a>, <span class="stringliteral">"dstActNotFound"</span>, <span class="stringliteral">"Destination account not found."</span>},</div>
|
|
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  {<a class="code" href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932ab2d46f2d2f48b9b2a69a3dd7900c2095">rpcDST_AMT_MALFORMED</a>,</div>
|
|
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  <span class="stringliteral">"dstAmtMalformed"</span>,</div>
|
|
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  <span class="stringliteral">"Destination amount/currency/issuer is malformed."</span>},</div>
|
|
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  {<a class="code" href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932ae21a94cfc5c7f48c1bdf6fd45b21e88b">rpcDST_AMT_MISSING</a>,</div>
|
|
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  <span class="stringliteral">"dstAmtMissing"</span>,</div>
|
|
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  <span class="stringliteral">"Destination amount/currency/issuer is missing."</span>},</div>
|
|
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  {<a class="code" href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932a7eec43248b5e3342fa6ff1fcf9976519">rpcDST_ISR_MALFORMED</a>,</div>
|
|
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  <span class="stringliteral">"dstIsrMalformed"</span>,</div>
|
|
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  <span class="stringliteral">"Destination issuer is malformed."</span>},</div>
|
|
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  {<a class="code" href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932a17eb7d1bbf2edda8e901174203e1e824">rpcEXCESSIVE_LGR_RANGE</a>, <span class="stringliteral">"excessiveLgrRange"</span>, <span class="stringliteral">"Ledger range exceeds 1000."</span>},</div>
|
|
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  {<a class="code" href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932abbd1895751c150ad43066e45683a3a6a">rpcFORBIDDEN</a>, <span class="stringliteral">"forbidden"</span>, <span class="stringliteral">"Bad credentials."</span>},</div>
|
|
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  {<a class="code" href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932aec7db9d4762c3d0f12eb05fefd12e905">rpcFAILED_TO_FORWARD</a>,</div>
|
|
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  <span class="stringliteral">"failedToForward"</span>,</div>
|
|
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  <span class="stringliteral">"Failed to forward request to p2p node"</span>},</div>
|
|
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  {<a class="code" href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932ae44751c9b253c3b447721a315c5525c7">rpcHIGH_FEE</a>, <span class="stringliteral">"highFee"</span>, <span class="stringliteral">"Current transaction fee exceeds your limit."</span>},</div>
|
|
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  {<a class="code" href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932a839833d48b635d8df6a9176274ae922f">rpcINTERNAL</a>, <span class="stringliteral">"internal"</span>, <span class="stringliteral">"Internal error."</span>},</div>
|
|
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  {<a class="code" href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932a2a99d997786c15b8688fdcd6242d386f">rpcINVALID_LGR_RANGE</a>, <span class="stringliteral">"invalidLgrRange"</span>, <span class="stringliteral">"Ledger range is invalid."</span>},</div>
|
|
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  {<a class="code" href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932a82ddebc5ec7a37ff38892487277bf9c4">rpcINVALID_PARAMS</a>, <span class="stringliteral">"invalidParams"</span>, <span class="stringliteral">"Invalid parameters."</span>},</div>
|
|
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  {<a class="code" href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932ac1a6dff600f246dd125ce9d6d02eeeba">rpcJSON_RPC</a>, <span class="stringliteral">"json_rpc"</span>, <span class="stringliteral">"JSON-RPC transport error."</span>},</div>
|
|
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  {<a class="code" href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932a9523d81ad23bb880bc9169950a780501">rpcLGR_IDXS_INVALID</a>, <span class="stringliteral">"lgrIdxsInvalid"</span>, <span class="stringliteral">"Ledger indexes invalid."</span>},</div>
|
|
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  {<a class="code" href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932ab6f7ca2b4e8b89a35acdbda0e1af8985">rpcLGR_IDX_MALFORMED</a>, <span class="stringliteral">"lgrIdxMalformed"</span>, <span class="stringliteral">"Ledger index malformed."</span>},</div>
|
|
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  {<a class="code" href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932a94c06165d2c9835fabfdb7388b68d376">rpcLGR_NOT_FOUND</a>, <span class="stringliteral">"lgrNotFound"</span>, <span class="stringliteral">"Ledger not found."</span>},</div>
|
|
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  {<a class="code" href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932a3df7a80b8a138b99a8e0723d2364d798">rpcLGR_NOT_VALIDATED</a>, <span class="stringliteral">"lgrNotValidated"</span>, <span class="stringliteral">"Ledger not validated."</span>},</div>
|
|
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  {<a class="code" href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932a55f16b6766448484475fc0f2db63d92b">rpcMASTER_DISABLED</a>, <span class="stringliteral">"masterDisabled"</span>, <span class="stringliteral">"Master key is disabled."</span>},</div>
|
|
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  {<a class="code" href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932ac6b74149815b431c392a0538b5df7b39">rpcNOT_ENABLED</a>, <span class="stringliteral">"notEnabled"</span>, <span class="stringliteral">"Not enabled in configuration."</span>},</div>
|
|
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  {<a class="code" href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932a9a898f996bdd8a3b2e718444d86e1640">rpcNOT_IMPL</a>, <span class="stringliteral">"notImpl"</span>, <span class="stringliteral">"Not implemented."</span>},</div>
|
|
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  {<a class="code" href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932a6ec49deb0783b06f293634d38eb407b9">rpcNOT_READY</a>, <span class="stringliteral">"notReady"</span>, <span class="stringliteral">"Not ready to handle this request."</span>},</div>
|
|
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  {<a class="code" href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932a0d6de5ceef1ebe6f65e14a7561563550">rpcNOT_SUPPORTED</a>, <span class="stringliteral">"notSupported"</span>, <span class="stringliteral">"Operation not supported."</span>},</div>
|
|
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  {<a class="code" href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932abc5ca87666d140c5f56880e7a7448773">rpcNO_CLOSED</a>, <span class="stringliteral">"noClosed"</span>, <span class="stringliteral">"Closed ledger is unavailable."</span>},</div>
|
|
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  {<a class="code" href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932a74511028d6a24bc8826f5fc70ca61ef5">rpcNO_CURRENT</a>, <span class="stringliteral">"noCurrent"</span>, <span class="stringliteral">"Current ledger is unavailable."</span>},</div>
|
|
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span>  {<a class="code" href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932af301bbeaf5fcfb44db08132e6eae4ac2">rpcNOT_SYNCED</a>, <span class="stringliteral">"notSynced"</span>, <span class="stringliteral">"Not synced to the network."</span>},</div>
|
|
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span>  {<a class="code" href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932a02193610b83aaaae66347f6236dcf995">rpcNO_EVENTS</a>, <span class="stringliteral">"noEvents"</span>, <span class="stringliteral">"Current transport does not support events."</span>},</div>
|
|
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  {<a class="code" href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932a128bdc6241c00a1d4486399d304c2d28">rpcNO_NETWORK</a>, <span class="stringliteral">"noNetwork"</span>, <span class="stringliteral">"Not synced to the network."</span>},</div>
|
|
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  {<a class="code" href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932af84f0f070938fb2e6bfc21dd28e98c5c">rpcNO_PERMISSION</a>,</div>
|
|
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  <span class="stringliteral">"noPermission"</span>,</div>
|
|
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  <span class="stringliteral">"You don't have permission for this command."</span>},</div>
|
|
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  {<a class="code" href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932aaa66891292b88906637528756e064d1e">rpcNO_PF_REQUEST</a>, <span class="stringliteral">"noPathRequest"</span>, <span class="stringliteral">"No pathfinding request in progress."</span>},</div>
|
|
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  {<a class="code" href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932a78e5ffef07cc85fedafde770039313bc">rpcPUBLIC_MALFORMED</a>, <span class="stringliteral">"publicMalformed"</span>, <span class="stringliteral">"Public key is malformed."</span>},</div>
|
|
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  {<a class="code" href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932aec13803e725665b5e973814ecc8789d2">rpcREPORTING_UNSUPPORTED</a>,</div>
|
|
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  <span class="stringliteral">"reportingUnsupported"</span>,</div>
|
|
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  <span class="stringliteral">"Requested operation not supported by reporting mode server"</span>},</div>
|
|
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  {<a class="code" href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932a9e3a3fa2bb1e04da92ea7253db9189d3">rpcSIGNING_MALFORMED</a>,</div>
|
|
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  <span class="stringliteral">"signingMalformed"</span>,</div>
|
|
<div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  <span class="stringliteral">"Signing of transaction is malformed."</span>},</div>
|
|
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  {<a class="code" href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932a55a275d2d3a5e83d075c30650592949d">rpcSLOW_DOWN</a>, <span class="stringliteral">"slowDown"</span>, <span class="stringliteral">"You are placing too much load on the server."</span>},</div>
|
|
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  {<a class="code" href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932a967859223f75630b2c78876fca0c0436">rpcSRC_ACT_MALFORMED</a>, <span class="stringliteral">"srcActMalformed"</span>, <span class="stringliteral">"Source account is malformed."</span>},</div>
|
|
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  {<a class="code" href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932afff1867365ccf8f1661c8d796c93ef4c">rpcSRC_ACT_MISSING</a>, <span class="stringliteral">"srcActMissing"</span>, <span class="stringliteral">"Source account not provided."</span>},</div>
|
|
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  {<a class="code" href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932a45e21d134aa6921065916fcbcb875877">rpcSRC_ACT_NOT_FOUND</a>, <span class="stringliteral">"srcActNotFound"</span>, <span class="stringliteral">"Source account not found."</span>},</div>
|
|
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span>  {<a class="code" href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932ad23b4971210983fe07f7225143e02225">rpcSRC_CUR_MALFORMED</a>, <span class="stringliteral">"srcCurMalformed"</span>, <span class="stringliteral">"Source currency is malformed."</span>},</div>
|
|
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span>  {<a class="code" href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932a9e0f3e460ea9530eb29736e0cd9b4304">rpcSRC_ISR_MALFORMED</a>, <span class="stringliteral">"srcIsrMalformed"</span>, <span class="stringliteral">"Source issuer is malformed."</span>},</div>
|
|
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span>  {<a class="code" href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932a8ea4e65eae406a522497b5a12dcde036">rpcSTREAM_MALFORMED</a>, <span class="stringliteral">"malformedStream"</span>, <span class="stringliteral">"Stream malformed."</span>},</div>
|
|
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span>  {<a class="code" href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932a41779a85a65f6faeb648c960e77f388f">rpcTOO_BUSY</a>, <span class="stringliteral">"tooBusy"</span>, <span class="stringliteral">"The server is too busy to help you now."</span>},</div>
|
|
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span>  {<a class="code" href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932a34422dc324e558835f6b63c7f430729a">rpcTXN_NOT_FOUND</a>, <span class="stringliteral">"txnNotFound"</span>, <span class="stringliteral">"Transaction not found."</span>},</div>
|
|
<div class="line"><a name="l00119"></a><span class="lineno"> 119</span>  {<a class="code" href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932a2e316006c45784996f1c36ff28ecf795">rpcUNKNOWN_COMMAND</a>, <span class="stringliteral">"unknownCmd"</span>, <span class="stringliteral">"Unknown method."</span>},</div>
|
|
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span>  {<a class="code" href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932a70a773ee3a341f5704835d3276b814a0">rpcSENDMAX_MALFORMED</a>, <span class="stringliteral">"sendMaxMalformed"</span>, <span class="stringliteral">"SendMax amount malformed."</span>}};</div>
|
|
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>  </div>
|
|
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span> <span class="comment">// C++ does not allow you to return an array from a function. You must</span></div>
|
|
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span> <span class="comment">// return an object which may in turn contain an array. The following</span></div>
|
|
<div class="line"><a name="l00124"></a><span class="lineno"> 124</span> <span class="comment">// struct is simply defined so the enclosed array can be returned from a</span></div>
|
|
<div class="line"><a name="l00125"></a><span class="lineno"> 125</span> <span class="comment">// constexpr function.</span></div>
|
|
<div class="line"><a name="l00126"></a><span class="lineno"> 126</span> <span class="comment">//</span></div>
|
|
<div class="line"><a name="l00127"></a><span class="lineno"> 127</span> <span class="comment">// In C++17 this struct can be replaced by a std::array. But in C++14</span></div>
|
|
<div class="line"><a name="l00128"></a><span class="lineno"> 128</span> <span class="comment">// the constexpr methods of a std::array are not sufficient to perform the</span></div>
|
|
<div class="line"><a name="l00129"></a><span class="lineno"> 129</span> <span class="comment">// necessary work at compile time.</span></div>
|
|
<div class="line"><a name="l00130"></a><span class="lineno"> 130</span> <span class="keyword">template</span> <<span class="keywordtype">int</span> N></div>
|
|
<div class="line"><a name="l00131"></a><span class="lineno"><a class="line" href="structripple_1_1RPC_1_1detail_1_1ErrorInfoArray.html"> 131</a></span> <span class="keyword">struct </span><a class="code" href="structripple_1_1RPC_1_1detail_1_1ErrorInfoArray.html">ErrorInfoArray</a></div>
|
|
<div class="line"><a name="l00132"></a><span class="lineno"> 132</span> {</div>
|
|
<div class="line"><a name="l00133"></a><span class="lineno"> 133</span>  <span class="comment">// Visual Studio doesn't treat a templated aggregate as an aggregate.</span></div>
|
|
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>  <span class="comment">// So, for Visual Studio, we define a constexpr default constructor.</span></div>
|
|
<div class="line"><a name="l00135"></a><span class="lineno"><a class="line" href="structripple_1_1RPC_1_1detail_1_1ErrorInfoArray.html#a0852a2d0a978189852322f5bb605eccd"> 135</a></span>  constexpr <a class="code" href="structripple_1_1RPC_1_1detail_1_1ErrorInfoArray.html#a0852a2d0a978189852322f5bb605eccd">ErrorInfoArray</a>() : <a class="code" href="structripple_1_1RPC_1_1detail_1_1ErrorInfoArray.html#a408713e963e13c726e709ec2676bcf7f">infos</a>{}</div>
|
|
<div class="line"><a name="l00136"></a><span class="lineno"> 136</span>  {</div>
|
|
<div class="line"><a name="l00137"></a><span class="lineno"> 137</span>  }</div>
|
|
<div class="line"><a name="l00138"></a><span class="lineno"> 138</span>  </div>
|
|
<div class="line"><a name="l00139"></a><span class="lineno"><a class="line" href="structripple_1_1RPC_1_1detail_1_1ErrorInfoArray.html#a408713e963e13c726e709ec2676bcf7f"> 139</a></span>  <a class="code" href="structripple_1_1RPC_1_1ErrorInfo.html">ErrorInfo</a> <a class="code" href="structripple_1_1RPC_1_1detail_1_1ErrorInfoArray.html#a408713e963e13c726e709ec2676bcf7f">infos</a>[N];</div>
|
|
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span> };</div>
|
|
<div class="line"><a name="l00141"></a><span class="lineno"> 141</span>  </div>
|
|
<div class="line"><a name="l00142"></a><span class="lineno"> 142</span> <span class="comment">// Sort and validate unorderedErrorInfos at compile time. Should be</span></div>
|
|
<div class="line"><a name="l00143"></a><span class="lineno"> 143</span> <span class="comment">// converted to consteval when get to C++20.</span></div>
|
|
<div class="line"><a name="l00144"></a><span class="lineno"> 144</span> <span class="keyword">template</span> <<span class="keywordtype">int</span> M, <span class="keywordtype">int</span> N></div>
|
|
<div class="line"><a name="l00145"></a><span class="lineno"> 145</span> constexpr <span class="keyword">auto</span></div>
|
|
<div class="line"><a name="l00146"></a><span class="lineno"><a class="line" href="namespaceripple_1_1RPC_1_1detail.html#a9483f36948ba569447b0aa0d6d250999"> 146</a></span> <a class="code" href="namespaceripple_1_1RPC_1_1detail.html#a9483f36948ba569447b0aa0d6d250999">sortErrorInfos</a>(<a class="code" href="structripple_1_1RPC_1_1ErrorInfo.html">ErrorInfo</a> <span class="keyword">const</span> (&unordered)[N]) -> <a class="code" href="structripple_1_1RPC_1_1detail_1_1ErrorInfoArray.html">ErrorInfoArray<M></a></div>
|
|
<div class="line"><a name="l00147"></a><span class="lineno"> 147</span> {</div>
|
|
<div class="line"><a name="l00148"></a><span class="lineno"> 148</span>  <a class="code" href="structripple_1_1RPC_1_1detail_1_1ErrorInfoArray.html">ErrorInfoArray<M></a> ret;</div>
|
|
<div class="line"><a name="l00149"></a><span class="lineno"> 149</span>  </div>
|
|
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span>  <span class="keywordflow">for</span> (<a class="code" href="structripple_1_1RPC_1_1ErrorInfo.html">ErrorInfo</a> <span class="keyword">const</span>& info : unordered)</div>
|
|
<div class="line"><a name="l00151"></a><span class="lineno"> 151</span>  {</div>
|
|
<div class="line"><a name="l00152"></a><span class="lineno"> 152</span>  <span class="keywordflow">if</span> (info.code <= <a class="code" href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932a6f69b339743d28bbc421fa3b31437173">rpcSUCCESS</a> || info.code > <a class="code" href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932a12405c5cf850257ddac293134371f64d">rpcLAST</a>)</div>
|
|
<div class="line"><a name="l00153"></a><span class="lineno"> 153</span>  <span class="keywordflow">throw</span>(<a class="codeRef" href="http://en.cppreference.com/w/cpp/error/out_of_range.html">std::out_of_range</a>(<span class="stringliteral">"Invalid error_code_i"</span>));</div>
|
|
<div class="line"><a name="l00154"></a><span class="lineno"> 154</span>  </div>
|
|
<div class="line"><a name="l00155"></a><span class="lineno"> 155</span>  <span class="comment">// The first valid code follows rpcSUCCESS immediately.</span></div>
|
|
<div class="line"><a name="l00156"></a><span class="lineno"> 156</span>  static_assert(<a class="code" href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932a6f69b339743d28bbc421fa3b31437173">rpcSUCCESS</a> == 0, <span class="stringliteral">"Unexpected error_code_i layout."</span>);</div>
|
|
<div class="line"><a name="l00157"></a><span class="lineno"> 157</span>  <span class="keywordtype">int</span> <span class="keyword">const</span> index{info.code - 1};</div>
|
|
<div class="line"><a name="l00158"></a><span class="lineno"> 158</span>  </div>
|
|
<div class="line"><a name="l00159"></a><span class="lineno"> 159</span>  <span class="keywordflow">if</span> (ret.<a class="code" href="structripple_1_1RPC_1_1detail_1_1ErrorInfoArray.html#a408713e963e13c726e709ec2676bcf7f">infos</a>[index].code != <a class="code" href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932aa4f3cb4313d397ba327dfc49ce439cae">rpcUNKNOWN</a>)</div>
|
|
<div class="line"><a name="l00160"></a><span class="lineno"> 160</span>  <span class="keywordflow">throw</span>(<a class="codeRef" href="http://en.cppreference.com/w/cpp/error/invalid_argument.html">std::invalid_argument</a>(<span class="stringliteral">"Duplicate error_code_i in list"</span>));</div>
|
|
<div class="line"><a name="l00161"></a><span class="lineno"> 161</span>  </div>
|
|
<div class="line"><a name="l00162"></a><span class="lineno"> 162</span>  ret.<a class="code" href="structripple_1_1RPC_1_1detail_1_1ErrorInfoArray.html#a408713e963e13c726e709ec2676bcf7f">infos</a>[index].code = info.code;</div>
|
|
<div class="line"><a name="l00163"></a><span class="lineno"> 163</span>  ret.<a class="code" href="structripple_1_1RPC_1_1detail_1_1ErrorInfoArray.html#a408713e963e13c726e709ec2676bcf7f">infos</a>[index].token = info.token;</div>
|
|
<div class="line"><a name="l00164"></a><span class="lineno"> 164</span>  ret.<a class="code" href="structripple_1_1RPC_1_1detail_1_1ErrorInfoArray.html#a408713e963e13c726e709ec2676bcf7f">infos</a>[index].message = info.message;</div>
|
|
<div class="line"><a name="l00165"></a><span class="lineno"> 165</span>  }</div>
|
|
<div class="line"><a name="l00166"></a><span class="lineno"> 166</span>  </div>
|
|
<div class="line"><a name="l00167"></a><span class="lineno"> 167</span>  <span class="comment">// Verify that all entries are filled in starting with 1 and proceeding</span></div>
|
|
<div class="line"><a name="l00168"></a><span class="lineno"> 168</span>  <span class="comment">// to rpcLAST.</span></div>
|
|
<div class="line"><a name="l00169"></a><span class="lineno"> 169</span>  <span class="comment">//</span></div>
|
|
<div class="line"><a name="l00170"></a><span class="lineno"> 170</span>  <span class="comment">// It's okay for there to be missing entries; they will contain the code</span></div>
|
|
<div class="line"><a name="l00171"></a><span class="lineno"> 171</span>  <span class="comment">// rpcUNKNOWN. But other than that all entries should match their index.</span></div>
|
|
<div class="line"><a name="l00172"></a><span class="lineno"> 172</span>  <span class="keywordtype">int</span> codeCount{0};</div>
|
|
<div class="line"><a name="l00173"></a><span class="lineno"> 173</span>  <span class="keywordtype">int</span> expect{<a class="code" href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932a89a147d7376535a497c85024dabc9167">rpcBAD_SYNTAX</a> - 1};</div>
|
|
<div class="line"><a name="l00174"></a><span class="lineno"> 174</span>  <span class="keywordflow">for</span> (<a class="code" href="structripple_1_1RPC_1_1ErrorInfo.html">ErrorInfo</a> <span class="keyword">const</span>& info : ret.<a class="code" href="structripple_1_1RPC_1_1detail_1_1ErrorInfoArray.html#a408713e963e13c726e709ec2676bcf7f">infos</a>)</div>
|
|
<div class="line"><a name="l00175"></a><span class="lineno"> 175</span>  {</div>
|
|
<div class="line"><a name="l00176"></a><span class="lineno"> 176</span>  ++expect;</div>
|
|
<div class="line"><a name="l00177"></a><span class="lineno"> 177</span>  <span class="keywordflow">if</span> (info.<a class="code" href="structripple_1_1RPC_1_1ErrorInfo.html#a905f6376e2efa99d9a5b52b0b107c0e7">code</a> == <a class="code" href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932aa4f3cb4313d397ba327dfc49ce439cae">rpcUNKNOWN</a>)</div>
|
|
<div class="line"><a name="l00178"></a><span class="lineno"> 178</span>  <span class="keywordflow">continue</span>;</div>
|
|
<div class="line"><a name="l00179"></a><span class="lineno"> 179</span>  </div>
|
|
<div class="line"><a name="l00180"></a><span class="lineno"> 180</span>  <span class="keywordflow">if</span> (info.<a class="code" href="structripple_1_1RPC_1_1ErrorInfo.html#a905f6376e2efa99d9a5b52b0b107c0e7">code</a> != expect)</div>
|
|
<div class="line"><a name="l00181"></a><span class="lineno"> 181</span>  <span class="keywordflow">throw</span>(<a class="codeRef" href="http://en.cppreference.com/w/cpp/error/invalid_argument.html">std::invalid_argument</a>(<span class="stringliteral">"Empty error_code_i in list"</span>));</div>
|
|
<div class="line"><a name="l00182"></a><span class="lineno"> 182</span>  ++codeCount;</div>
|
|
<div class="line"><a name="l00183"></a><span class="lineno"> 183</span>  }</div>
|
|
<div class="line"><a name="l00184"></a><span class="lineno"> 184</span>  <span class="keywordflow">if</span> (expect != <a class="code" href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932a12405c5cf850257ddac293134371f64d">rpcLAST</a>)</div>
|
|
<div class="line"><a name="l00185"></a><span class="lineno"> 185</span>  <span class="keywordflow">throw</span>(<a class="codeRef" href="http://en.cppreference.com/w/cpp/error/invalid_argument.html">std::invalid_argument</a>(<span class="stringliteral">"Insufficient list entries"</span>));</div>
|
|
<div class="line"><a name="l00186"></a><span class="lineno"> 186</span>  <span class="keywordflow">if</span> (codeCount != N)</div>
|
|
<div class="line"><a name="l00187"></a><span class="lineno"> 187</span>  <span class="keywordflow">throw</span>(<a class="codeRef" href="http://en.cppreference.com/w/cpp/error/invalid_argument.html">std::invalid_argument</a>(<span class="stringliteral">"Bad handling of unorderedErrorInfos"</span>));</div>
|
|
<div class="line"><a name="l00188"></a><span class="lineno"> 188</span>  </div>
|
|
<div class="line"><a name="l00189"></a><span class="lineno"> 189</span>  <span class="keywordflow">return</span> ret;</div>
|
|
<div class="line"><a name="l00190"></a><span class="lineno"> 190</span> }</div>
|
|
<div class="line"><a name="l00191"></a><span class="lineno"> 191</span>  </div>
|
|
<div class="line"><a name="l00192"></a><span class="lineno"><a class="line" href="namespaceripple_1_1RPC_1_1detail.html#aa702f450a33affe49c682659ea86ad90"> 192</a></span> constexpr <span class="keyword">auto</span> <a class="code" href="namespaceripple_1_1RPC_1_1detail.html#aa702f450a33affe49c682659ea86ad90">sortedErrorInfos</a>{sortErrorInfos<rpcLAST>(<a class="code" href="namespaceripple_1_1RPC_1_1detail.html#a1c421dba7e45127b0b9173b56ec5d34e">unorderedErrorInfos</a>)};</div>
|
|
<div class="line"><a name="l00193"></a><span class="lineno"> 193</span>  </div>
|
|
<div class="line"><a name="l00194"></a><span class="lineno"><a class="line" href="namespaceripple_1_1RPC_1_1detail.html#ac52c1b9c7196e379c9a838cde09592bb"> 194</a></span> constexpr <a class="code" href="structripple_1_1RPC_1_1ErrorInfo.html">ErrorInfo</a> <a class="code" href="namespaceripple_1_1RPC_1_1detail.html#ac52c1b9c7196e379c9a838cde09592bb">unknownError</a>;</div>
|
|
<div class="line"><a name="l00195"></a><span class="lineno"> 195</span>  </div>
|
|
<div class="line"><a name="l00196"></a><span class="lineno"> 196</span> } <span class="comment">// namespace detail</span></div>
|
|
<div class="line"><a name="l00197"></a><span class="lineno"> 197</span>  </div>
|
|
<div class="line"><a name="l00198"></a><span class="lineno"> 198</span> <span class="comment">//------------------------------------------------------------------------------</span></div>
|
|
<div class="line"><a name="l00199"></a><span class="lineno"> 199</span>  </div>
|
|
<div class="line"><a name="l00200"></a><span class="lineno"> 200</span> <a class="code" href="structripple_1_1RPC_1_1ErrorInfo.html">ErrorInfo</a> <span class="keyword">const</span>&</div>
|
|
<div class="line"><a name="l00201"></a><span class="lineno"><a class="line" href="namespaceripple_1_1RPC.html#aa01c09044342d3707e231b3ede5086f0"> 201</a></span> <a class="code" href="namespaceripple_1_1RPC.html#aa01c09044342d3707e231b3ede5086f0">get_error_info</a>(<a class="code" href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932">error_code_i</a> code)</div>
|
|
<div class="line"><a name="l00202"></a><span class="lineno"> 202</span> {</div>
|
|
<div class="line"><a name="l00203"></a><span class="lineno"> 203</span>  <span class="keywordflow">if</span> (code <= rpcSUCCESS || code > <a class="code" href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932a12405c5cf850257ddac293134371f64d">rpcLAST</a>)</div>
|
|
<div class="line"><a name="l00204"></a><span class="lineno"> 204</span>  <span class="keywordflow">return</span> <a class="code" href="namespaceripple_1_1RPC_1_1detail.html#ac52c1b9c7196e379c9a838cde09592bb">detail::unknownError</a>;</div>
|
|
<div class="line"><a name="l00205"></a><span class="lineno"> 205</span>  <span class="keywordflow">return</span> <a class="code" href="namespaceripple_1_1RPC_1_1detail.html#aa702f450a33affe49c682659ea86ad90">detail::sortedErrorInfos</a>.infos[code - 1];</div>
|
|
<div class="line"><a name="l00206"></a><span class="lineno"> 206</span> }</div>
|
|
<div class="line"><a name="l00207"></a><span class="lineno"> 207</span>  </div>
|
|
<div class="line"><a name="l00208"></a><span class="lineno"> 208</span> <a class="code" href="classJson_1_1Value.html">Json::Value</a></div>
|
|
<div class="line"><a name="l00209"></a><span class="lineno"><a class="line" href="namespaceripple_1_1RPC.html#a2cd6200f6709780fcf1dd26ec9cd2866"> 209</a></span> <a class="code" href="namespaceripple_1_1RPC.html#a2cd6200f6709780fcf1dd26ec9cd2866">make_error</a>(<a class="code" href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932">error_code_i</a> code)</div>
|
|
<div class="line"><a name="l00210"></a><span class="lineno"> 210</span> {</div>
|
|
<div class="line"><a name="l00211"></a><span class="lineno"> 211</span>  <a class="code" href="classJson_1_1Value.html">Json::Value</a> json;</div>
|
|
<div class="line"><a name="l00212"></a><span class="lineno"> 212</span>  <a class="code" href="namespaceripple_1_1RPC.html#a577bde9602a28f59e445c496f92a1ccf">inject_error</a>(code, json);</div>
|
|
<div class="line"><a name="l00213"></a><span class="lineno"> 213</span>  <span class="keywordflow">return</span> json;</div>
|
|
<div class="line"><a name="l00214"></a><span class="lineno"> 214</span> }</div>
|
|
<div class="line"><a name="l00215"></a><span class="lineno"> 215</span>  </div>
|
|
<div class="line"><a name="l00216"></a><span class="lineno"> 216</span> <a class="code" href="classJson_1_1Value.html">Json::Value</a></div>
|
|
<div class="line"><a name="l00217"></a><span class="lineno"><a class="line" href="namespaceripple_1_1RPC.html#a13f1f4cafeef7807d8e84fc1b4980079"> 217</a></span> <a class="code" href="namespaceripple_1_1RPC.html#a2cd6200f6709780fcf1dd26ec9cd2866">make_error</a>(<a class="code" href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932">error_code_i</a> code, <a class="codeRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> <span class="keyword">const</span>& message)</div>
|
|
<div class="line"><a name="l00218"></a><span class="lineno"> 218</span> {</div>
|
|
<div class="line"><a name="l00219"></a><span class="lineno"> 219</span>  <a class="code" href="classJson_1_1Value.html">Json::Value</a> json;</div>
|
|
<div class="line"><a name="l00220"></a><span class="lineno"> 220</span>  <a class="code" href="namespaceripple_1_1RPC.html#a577bde9602a28f59e445c496f92a1ccf">inject_error</a>(code, message, json);</div>
|
|
<div class="line"><a name="l00221"></a><span class="lineno"> 221</span>  <span class="keywordflow">return</span> json;</div>
|
|
<div class="line"><a name="l00222"></a><span class="lineno"> 222</span> }</div>
|
|
<div class="line"><a name="l00223"></a><span class="lineno"> 223</span>  </div>
|
|
<div class="line"><a name="l00224"></a><span class="lineno"> 224</span> <span class="keywordtype">bool</span></div>
|
|
<div class="line"><a name="l00225"></a><span class="lineno"><a class="line" href="namespaceripple_1_1RPC.html#a1a79f0c33d1405fe85c40d63a49658bd"> 225</a></span> <a class="code" href="namespaceripple_1_1RPC.html#a1a79f0c33d1405fe85c40d63a49658bd">contains_error</a>(<a class="code" href="classJson_1_1Value.html">Json::Value</a> <span class="keyword">const</span>& json)</div>
|
|
<div class="line"><a name="l00226"></a><span class="lineno"> 226</span> {</div>
|
|
<div class="line"><a name="l00227"></a><span class="lineno"> 227</span>  <span class="keywordflow">if</span> (json.<a class="code" href="classJson_1_1Value.html#a8cf96c0f2a552051fcfc78ffee60e037">isObject</a>() && json.<a class="code" href="classJson_1_1Value.html#ad6d4df2227321bab05e86667609a7fad">isMember</a>(jss::error))</div>
|
|
<div class="line"><a name="l00228"></a><span class="lineno"> 228</span>  <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
|
|
<div class="line"><a name="l00229"></a><span class="lineno"> 229</span>  <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
|
|
<div class="line"><a name="l00230"></a><span class="lineno"> 230</span> }</div>
|
|
<div class="line"><a name="l00231"></a><span class="lineno"> 231</span>  </div>
|
|
<div class="line"><a name="l00232"></a><span class="lineno"> 232</span> } <span class="comment">// namespace RPC</span></div>
|
|
<div class="line"><a name="l00233"></a><span class="lineno"> 233</span>  </div>
|
|
<div class="line"><a name="l00234"></a><span class="lineno"> 234</span> <a class="codeRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a></div>
|
|
<div class="line"><a name="l00235"></a><span class="lineno"><a class="line" href="namespaceripple.html#a23f02900cac703bddf91fff471cb9d65"> 235</a></span> <a class="code" href="namespaceripple.html#a23f02900cac703bddf91fff471cb9d65">rpcErrorString</a>(<a class="code" href="classJson_1_1Value.html">Json::Value</a> <span class="keyword">const</span>& jv)</div>
|
|
<div class="line"><a name="l00236"></a><span class="lineno"> 236</span> {</div>
|
|
<div class="line"><a name="l00237"></a><span class="lineno"> 237</span>  assert(<a class="code" href="namespaceripple_1_1RPC.html#a1a79f0c33d1405fe85c40d63a49658bd">RPC::contains_error</a>(jv));</div>
|
|
<div class="line"><a name="l00238"></a><span class="lineno"> 238</span>  <span class="keywordflow">return</span> jv[jss::error].<a class="code" href="classJson_1_1Value.html#ab0d86bf425efefd03513e8dbfaca317b">asString</a>() + jv[jss::error_message].<a class="code" href="classJson_1_1Value.html#ab0d86bf425efefd03513e8dbfaca317b">asString</a>();</div>
|
|
<div class="line"><a name="l00239"></a><span class="lineno"> 239</span> }</div>
|
|
<div class="line"><a name="l00240"></a><span class="lineno"> 240</span>  </div>
|
|
<div class="line"><a name="l00241"></a><span class="lineno"> 241</span> } <span class="comment">// namespace ripple</span></div>
|
|
</div><!-- fragment --></div><!-- contents -->
|
|
<div class="ttc" id="anamespaceripple_html_a32d6d3ce1a48272b677d2c88b1d30932a128bdc6241c00a1d4486399d304c2d28"><div class="ttname"><a href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932a128bdc6241c00a1d4486399d304c2d28">ripple::rpcNO_NETWORK</a></div><div class="ttdeci">@ rpcNO_NETWORK</div><div class="ttdef"><b>Definition:</b> <a href="ErrorCodes_8h_source.html#l00066">ErrorCodes.h:66</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_html_a32d6d3ce1a48272b677d2c88b1d30932aec50f1af38ef002318ef8f19ca27560c"><div class="ttname"><a href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932aec50f1af38ef002318ef8f19ca27560c">ripple::rpcDB_DESERIALIZATION</a></div><div class="ttdeci">@ rpcDB_DESERIALIZATION</div><div class="ttdef"><b>Definition:</b> <a href="ErrorCodes_8h_source.html#l00134">ErrorCodes.h:134</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_html_a32d6d3ce1a48272b677d2c88b1d30932ab2d46f2d2f48b9b2a69a3dd7900c2095"><div class="ttname"><a href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932ab2d46f2d2f48b9b2a69a3dd7900c2095">ripple::rpcDST_AMT_MALFORMED</a></div><div class="ttdeci">@ rpcDST_AMT_MALFORMED</div><div class="ttdef"><b>Definition:</b> <a href="ErrorCodes_8h_source.html#l00106">ErrorCodes.h:106</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_html_a32d6d3ce1a48272b677d2c88b1d30932a0d6de5ceef1ebe6f65e14a7561563550"><div class="ttname"><a href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932a0d6de5ceef1ebe6f65e14a7561563550">ripple::rpcNOT_SUPPORTED</a></div><div class="ttdeci">@ rpcNOT_SUPPORTED</div><div class="ttdef"><b>Definition:</b> <a href="ErrorCodes_8h_source.html#l00132">ErrorCodes.h:132</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_html_a32d6d3ce1a48272b677d2c88b1d30932a9523d81ad23bb880bc9169950a780501"><div class="ttname"><a href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932a9523d81ad23bb880bc9169950a780501">ripple::rpcLGR_IDXS_INVALID</a></div><div class="ttdeci">@ rpcLGR_IDXS_INVALID</div><div class="ttdef"><b>Definition:</b> <a href="ErrorCodes_8h_source.html#l00112">ErrorCodes.h:112</a></div></div>
|
|
<div class="ttc" id="aclassJson_1_1Value_html_a8cf96c0f2a552051fcfc78ffee60e037"><div class="ttname"><a href="classJson_1_1Value.html#a8cf96c0f2a552051fcfc78ffee60e037">Json::Value::isObject</a></div><div class="ttdeci">bool isObject() const</div><div class="ttdef"><b>Definition:</b> <a href="json__value_8cpp_source.html#l01027">json_value.cpp:1027</a></div></div>
|
|
<div class="ttc" id="abasic_string_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a></div><div class="ttdoc">STL class.</div></div>
|
|
<div class="ttc" id="anamespaceripple_html_a32d6d3ce1a48272b677d2c88b1d30932a82ddebc5ec7a37ff38892487277bf9c4"><div class="ttname"><a href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932a82ddebc5ec7a37ff38892487277bf9c4">ripple::rpcINVALID_PARAMS</a></div><div class="ttdeci">@ rpcINVALID_PARAMS</div><div class="ttdef"><b>Definition:</b> <a href="ErrorCodes_8h_source.html#l00084">ErrorCodes.h:84</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_1_1RPC_html_aa01c09044342d3707e231b3ede5086f0"><div class="ttname"><a href="namespaceripple_1_1RPC.html#aa01c09044342d3707e231b3ede5086f0">ripple::RPC::get_error_info</a></div><div class="ttdeci">ErrorInfo const & get_error_info(error_code_i code)</div><div class="ttdoc">Returns an ErrorInfo that reflects the error code.</div><div class="ttdef"><b>Definition:</b> <a href="ErrorCodes_8cpp_source.html#l00201">ErrorCodes.cpp:201</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_html_a23f02900cac703bddf91fff471cb9d65"><div class="ttname"><a href="namespaceripple.html#a23f02900cac703bddf91fff471cb9d65">ripple::rpcErrorString</a></div><div class="ttdeci">std::string rpcErrorString(Json::Value const &jv)</div><div class="ttdoc">Returns a single string with the contents of an RPC error.</div><div class="ttdef"><b>Definition:</b> <a href="ErrorCodes_8cpp_source.html#l00235">ErrorCodes.cpp:235</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_1_1RPC_1_1detail_html_aa702f450a33affe49c682659ea86ad90"><div class="ttname"><a href="namespaceripple_1_1RPC_1_1detail.html#aa702f450a33affe49c682659ea86ad90">ripple::RPC::detail::sortedErrorInfos</a></div><div class="ttdeci">constexpr auto sortedErrorInfos</div><div class="ttdef"><b>Definition:</b> <a href="ErrorCodes_8cpp_source.html#l00192">ErrorCodes.cpp:192</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_html_a32d6d3ce1a48272b677d2c88b1d30932a45e21d134aa6921065916fcbcb875877"><div class="ttname"><a href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932a45e21d134aa6921065916fcbcb875877">ripple::rpcSRC_ACT_NOT_FOUND</a></div><div class="ttdeci">@ rpcSRC_ACT_NOT_FOUND</div><div class="ttdef"><b>Definition:</b> <a href="ErrorCodes_8h_source.html#l00122">ErrorCodes.h:122</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_html_a32d6d3ce1a48272b677d2c88b1d30932ac1a6dff600f246dd125ce9d6d02eeeba"><div class="ttname"><a href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932ac1a6dff600f246dd125ce9d6d02eeeba">ripple::rpcJSON_RPC</a></div><div class="ttdeci">@ rpcJSON_RPC</div><div class="ttdef"><b>Definition:</b> <a href="ErrorCodes_8h_source.html#l00047">ErrorCodes.h:47</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_html_a32d6d3ce1a48272b677d2c88b1d30932a9e3a3fa2bb1e04da92ea7253db9189d3"><div class="ttname"><a href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932a9e3a3fa2bb1e04da92ea7253db9189d3">ripple::rpcSIGNING_MALFORMED</a></div><div class="ttdeci">@ rpcSIGNING_MALFORMED</div><div class="ttdef"><b>Definition:</b> <a href="ErrorCodes_8h_source.html#l00118">ErrorCodes.h:118</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_html_a32d6d3ce1a48272b677d2c88b1d30932a6ec49deb0783b06f293634d38eb407b9"><div class="ttname"><a href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932a6ec49deb0783b06f293634d38eb407b9">ripple::rpcNOT_READY</a></div><div class="ttdeci">@ rpcNOT_READY</div><div class="ttdef"><b>Definition:</b> <a href="ErrorCodes_8h_source.html#l00060">ErrorCodes.h:60</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_html_a32d6d3ce1a48272b677d2c88b1d30932a17eb7d1bbf2edda8e901174203e1e824"><div class="ttname"><a href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932a17eb7d1bbf2edda8e901174203e1e824">ripple::rpcEXCESSIVE_LGR_RANGE</a></div><div class="ttdeci">@ rpcEXCESSIVE_LGR_RANGE</div><div class="ttdef"><b>Definition:</b> <a href="ErrorCodes_8h_source.html#l00135">ErrorCodes.h:135</a></div></div>
|
|
<div class="ttc" id="astructripple_1_1RPC_1_1detail_1_1ErrorInfoArray_html_a408713e963e13c726e709ec2676bcf7f"><div class="ttname"><a href="structripple_1_1RPC_1_1detail_1_1ErrorInfoArray.html#a408713e963e13c726e709ec2676bcf7f">ripple::RPC::detail::ErrorInfoArray::infos</a></div><div class="ttdeci">ErrorInfo infos[N]</div><div class="ttdef"><b>Definition:</b> <a href="ErrorCodes_8cpp_source.html#l00139">ErrorCodes.cpp:139</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_html_a32d6d3ce1a48272b677d2c88b1d30932a41779a85a65f6faeb648c960e77f388f"><div class="ttname"><a href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932a41779a85a65f6faeb648c960e77f388f">ripple::rpcTOO_BUSY</a></div><div class="ttdeci">@ rpcTOO_BUSY</div><div class="ttdef"><b>Definition:</b> <a href="ErrorCodes_8h_source.html#l00056">ErrorCodes.h:56</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_html_a32d6d3ce1a48272b677d2c88b1d30932a19bc14d53a84c5b1d5c1693aa0e9e317"><div class="ttname"><a href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932a19bc14d53a84c5b1d5c1693aa0e9e317">ripple::rpcATX_DEPRECATED</a></div><div class="ttdeci">@ rpcATX_DEPRECATED</div><div class="ttdef"><b>Definition:</b> <a href="ErrorCodes_8h_source.html#l00127">ErrorCodes.h:127</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_html_a32d6d3ce1a48272b677d2c88b1d30932a94c06165d2c9835fabfdb7388b68d376"><div class="ttname"><a href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932a94c06165d2c9835fabfdb7388b68d376">ripple::rpcLGR_NOT_FOUND</a></div><div class="ttdeci">@ rpcLGR_NOT_FOUND</div><div class="ttdef"><b>Definition:</b> <a href="ErrorCodes_8h_source.html#l00072">ErrorCodes.h:72</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_html_a32d6d3ce1a48272b677d2c88b1d30932aec13803e725665b5e973814ecc8789d2"><div class="ttname"><a href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932aec13803e725665b5e973814ecc8789d2">ripple::rpcREPORTING_UNSUPPORTED</a></div><div class="ttdeci">@ rpcREPORTING_UNSUPPORTED</div><div class="ttdef"><b>Definition:</b> <a href="ErrorCodes_8h_source.html#l00141">ErrorCodes.h:141</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_html_a32d6d3ce1a48272b677d2c88b1d30932"><div class="ttname"><a href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932">ripple::error_code_i</a></div><div class="ttdeci">error_code_i</div><div class="ttdef"><b>Definition:</b> <a href="ErrorCodes_8h_source.html#l00040">ErrorCodes.h:40</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_html_a32d6d3ce1a48272b677d2c88b1d30932a1c4319d23e52800c6dc951ed7d343cea"><div class="ttname"><a href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932a1c4319d23e52800c6dc951ed7d343cea">ripple::rpcAMENDMENT_BLOCKED</a></div><div class="ttdeci">@ rpcAMENDMENT_BLOCKED</div><div class="ttdef"><b>Definition:</b> <a href="ErrorCodes_8h_source.html#l00061">ErrorCodes.h:61</a></div></div>
|
|
<div class="ttc" id="astdexcept_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/header/stdexcept.html">stdexcept</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_html_a32d6d3ce1a48272b677d2c88b1d30932a6f69b339743d28bbc421fa3b31437173"><div class="ttname"><a href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932a6f69b339743d28bbc421fa3b31437173">ripple::rpcSUCCESS</a></div><div class="ttdeci">@ rpcSUCCESS</div><div class="ttdef"><b>Definition:</b> <a href="ErrorCodes_8h_source.html#l00044">ErrorCodes.h:44</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_html_a32d6d3ce1a48272b677d2c88b1d30932a55a275d2d3a5e83d075c30650592949d"><div class="ttname"><a href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932a55a275d2d3a5e83d075c30650592949d">ripple::rpcSLOW_DOWN</a></div><div class="ttdeci">@ rpcSLOW_DOWN</div><div class="ttdef"><b>Definition:</b> <a href="ErrorCodes_8h_source.html#l00057">ErrorCodes.h:57</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_1_1RPC_html_a1a79f0c33d1405fe85c40d63a49658bd"><div class="ttname"><a href="namespaceripple_1_1RPC.html#a1a79f0c33d1405fe85c40d63a49658bd">ripple::RPC::contains_error</a></div><div class="ttdeci">bool contains_error(Json::Value const &json)</div><div class="ttdoc">Returns true if the json contains an rpc error specification.</div><div class="ttdef"><b>Definition:</b> <a href="ErrorCodes_8cpp_source.html#l00225">ErrorCodes.cpp:225</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_html_a32d6d3ce1a48272b677d2c88b1d30932afff1867365ccf8f1661c8d796c93ef4c"><div class="ttname"><a href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932afff1867365ccf8f1661c8d796c93ef4c">ripple::rpcSRC_ACT_MISSING</a></div><div class="ttdeci">@ rpcSRC_ACT_MISSING</div><div class="ttdef"><b>Definition:</b> <a href="ErrorCodes_8h_source.html#l00121">ErrorCodes.h:121</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_html_a32d6d3ce1a48272b677d2c88b1d30932a11b93b10f2466e402c74aa4a9b5cb2f7"><div class="ttname"><a href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932a11b93b10f2466e402c74aa4a9b5cb2f7">ripple::rpcALREADY_SINGLE_SIG</a></div><div class="ttdeci">@ rpcALREADY_SINGLE_SIG</div><div class="ttdef"><b>Definition:</b> <a href="ErrorCodes_8h_source.html#l00092">ErrorCodes.h:92</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_html_a32d6d3ce1a48272b677d2c88b1d30932ad2f8f023342d32f2602688202894cabe"><div class="ttname"><a href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932ad2f8f023342d32f2602688202894cabe">ripple::rpcBAD_SEED</a></div><div class="ttdeci">@ rpcBAD_SEED</div><div class="ttdef"><b>Definition:</b> <a href="ErrorCodes_8h_source.html#l00099">ErrorCodes.h:99</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_html_a32d6d3ce1a48272b677d2c88b1d30932ae44751c9b253c3b447721a315c5525c7"><div class="ttname"><a href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932ae44751c9b253c3b447721a315c5525c7">ripple::rpcHIGH_FEE</a></div><div class="ttdeci">@ rpcHIGH_FEE</div><div class="ttdef"><b>Definition:</b> <a href="ErrorCodes_8h_source.html#l00058">ErrorCodes.h:58</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_html_a32d6d3ce1a48272b677d2c88b1d30932a78e5ffef07cc85fedafde770039313bc"><div class="ttname"><a href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932a78e5ffef07cc85fedafde770039313bc">ripple::rpcPUBLIC_MALFORMED</a></div><div class="ttdeci">@ rpcPUBLIC_MALFORMED</div><div class="ttdef"><b>Definition:</b> <a href="ErrorCodes_8h_source.html#l00117">ErrorCodes.h:117</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_html_a32d6d3ce1a48272b677d2c88b1d30932a044301ed3c32624aade5888d1c60566f"><div class="ttname"><a href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932a044301ed3c32624aade5888d1c60566f">ripple::rpcACT_NOT_FOUND</a></div><div class="ttdeci">@ rpcACT_NOT_FOUND</div><div class="ttdef"><b>Definition:</b> <a href="ErrorCodes_8h_source.html#l00070">ErrorCodes.h:70</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_html_a32d6d3ce1a48272b677d2c88b1d30932a34422dc324e558835f6b63c7f430729a"><div class="ttname"><a href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932a34422dc324e558835f6b63c7f430729a">ripple::rpcTXN_NOT_FOUND</a></div><div class="ttdeci">@ rpcTXN_NOT_FOUND</div><div class="ttdef"><b>Definition:</b> <a href="ErrorCodes_8h_source.html#l00080">ErrorCodes.h:80</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_html_a32d6d3ce1a48272b677d2c88b1d30932a9e0f3e460ea9530eb29736e0cd9b4304"><div class="ttname"><a href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932a9e0f3e460ea9530eb29736e0cd9b4304">ripple::rpcSRC_ISR_MALFORMED</a></div><div class="ttdeci">@ rpcSRC_ISR_MALFORMED</div><div class="ttdef"><b>Definition:</b> <a href="ErrorCodes_8h_source.html#l00125">ErrorCodes.h:125</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_html_a32d6d3ce1a48272b677d2c88b1d30932a8ea4e65eae406a522497b5a12dcde036"><div class="ttname"><a href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932a8ea4e65eae406a522497b5a12dcde036">ripple::rpcSTREAM_MALFORMED</a></div><div class="ttdeci">@ rpcSTREAM_MALFORMED</div><div class="ttdef"><b>Definition:</b> <a href="ErrorCodes_8h_source.html#l00126">ErrorCodes.h:126</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_html_a32d6d3ce1a48272b677d2c88b1d30932ac6b74149815b431c392a0538b5df7b39"><div class="ttname"><a href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932ac6b74149815b431c392a0538b5df7b39">ripple::rpcNOT_ENABLED</a></div><div class="ttdeci">@ rpcNOT_ENABLED</div><div class="ttdef"><b>Definition:</b> <a href="ErrorCodes_8h_source.html#l00059">ErrorCodes.h:59</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_html_a32d6d3ce1a48272b677d2c88b1d30932a02193610b83aaaae66347f6236dcf995"><div class="ttname"><a href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932a02193610b83aaaae66347f6236dcf995">ripple::rpcNO_EVENTS</a></div><div class="ttdeci">@ rpcNO_EVENTS</div><div class="ttdef"><b>Definition:</b> <a href="ErrorCodes_8h_source.html#l00054">ErrorCodes.h:54</a></div></div>
|
|
<div class="ttc" id="aclassJson_1_1Value_html_ad6d4df2227321bab05e86667609a7fad"><div class="ttname"><a href="classJson_1_1Value.html#ad6d4df2227321bab05e86667609a7fad">Json::Value::isMember</a></div><div class="ttdeci">bool isMember(const char *key) const</div><div class="ttdoc">Return true if the object has a member named key.</div><div class="ttdef"><b>Definition:</b> <a href="json__value_8cpp_source.html#l00932">json_value.cpp:932</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_html_a32d6d3ce1a48272b677d2c88b1d30932a74511028d6a24bc8826f5fc70ca61ef5"><div class="ttname"><a href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932a74511028d6a24bc8826f5fc70ca61ef5">ripple::rpcNO_CURRENT</a></div><div class="ttdeci">@ rpcNO_CURRENT</div><div class="ttdef"><b>Definition:</b> <a href="ErrorCodes_8h_source.html#l00065">ErrorCodes.h:65</a></div></div>
|
|
<div class="ttc" id="ainvalid_argument_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/error/invalid_argument.html">std::invalid_argument</a></div><div class="ttdoc">STL class.</div></div>
|
|
<div class="ttc" id="astructripple_1_1RPC_1_1ErrorInfo_html"><div class="ttname"><a href="structripple_1_1RPC_1_1ErrorInfo.html">ripple::RPC::ErrorInfo</a></div><div class="ttdoc">Maps an rpc error code to its token and default message.</div><div class="ttdef"><b>Definition:</b> <a href="ErrorCodes_8h_source.html#l00164">ErrorCodes.h:164</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_html_a32d6d3ce1a48272b677d2c88b1d30932a7eec43248b5e3342fa6ff1fcf9976519"><div class="ttname"><a href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932a7eec43248b5e3342fa6ff1fcf9976519">ripple::rpcDST_ISR_MALFORMED</a></div><div class="ttdeci">@ rpcDST_ISR_MALFORMED</div><div class="ttdef"><b>Definition:</b> <a href="ErrorCodes_8h_source.html#l00108">ErrorCodes.h:108</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_html_a32d6d3ce1a48272b677d2c88b1d30932ab86d56c66edde43e490eec3de23deb47"><div class="ttname"><a href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932ab86d56c66edde43e490eec3de23deb47">ripple::rpcCOMMAND_MISSING</a></div><div class="ttdeci">@ rpcCOMMAND_MISSING</div><div class="ttdef"><b>Definition:</b> <a href="ErrorCodes_8h_source.html#l00102">ErrorCodes.h:102</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_html_a32d6d3ce1a48272b677d2c88b1d30932ac88bf3c7097096c5ed0fc4d354e91950"><div class="ttname"><a href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932ac88bf3c7097096c5ed0fc4d354e91950">ripple::rpcDST_ACT_MALFORMED</a></div><div class="ttdeci">@ rpcDST_ACT_MALFORMED</div><div class="ttdef"><b>Definition:</b> <a href="ErrorCodes_8h_source.html#l00103">ErrorCodes.h:103</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_html_a32d6d3ce1a48272b677d2c88b1d30932a63fd0c00dcecf06df448bf7eddf6bd8c"><div class="ttname"><a href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932a63fd0c00dcecf06df448bf7eddf6bd8c">ripple::rpcALREADY_MULTISIG</a></div><div class="ttdeci">@ rpcALREADY_MULTISIG</div><div class="ttdef"><b>Definition:</b> <a href="ErrorCodes_8h_source.html#l00091">ErrorCodes.h:91</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_html_a32d6d3ce1a48272b677d2c88b1d30932a12405c5cf850257ddac293134371f64d"><div class="ttname"><a href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932a12405c5cf850257ddac293134371f64d">ripple::rpcLAST</a></div><div class="ttdeci">@ rpcLAST</div><div class="ttdef"><b>Definition:</b> <a href="ErrorCodes_8h_source.html#l00142">ErrorCodes.h:142</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_1_1RPC_1_1detail_html_ac52c1b9c7196e379c9a838cde09592bb"><div class="ttname"><a href="namespaceripple_1_1RPC_1_1detail.html#ac52c1b9c7196e379c9a838cde09592bb">ripple::RPC::detail::unknownError</a></div><div class="ttdeci">constexpr ErrorInfo unknownError</div><div class="ttdef"><b>Definition:</b> <a href="ErrorCodes_8cpp_source.html#l00194">ErrorCodes.cpp:194</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_html_a32d6d3ce1a48272b677d2c88b1d30932a839833d48b635d8df6a9176274ae922f"><div class="ttname"><a href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932a839833d48b635d8df6a9176274ae922f">ripple::rpcINTERNAL</a></div><div class="ttdeci">@ rpcINTERNAL</div><div class="ttdef"><b>Definition:</b> <a href="ErrorCodes_8h_source.html#l00130">ErrorCodes.h:130</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_html_a32d6d3ce1a48272b677d2c88b1d30932a60badd0db2ef5b154d6101fe7b845e39"><div class="ttname"><a href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932a60badd0db2ef5b154d6101fe7b845e39">ripple::rpcCHANNEL_AMT_MALFORMED</a></div><div class="ttdeci">@ rpcCHANNEL_AMT_MALFORMED</div><div class="ttdef"><b>Definition:</b> <a href="ErrorCodes_8h_source.html#l00101">ErrorCodes.h:101</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_html_a32d6d3ce1a48272b677d2c88b1d30932aec93776d4f8dd6d4dac1ac2a447d196a"><div class="ttname"><a href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932aec93776d4f8dd6d4dac1ac2a447d196a">ripple::rpcDST_ACT_NOT_FOUND</a></div><div class="ttdeci">@ rpcDST_ACT_NOT_FOUND</div><div class="ttdef"><b>Definition:</b> <a href="ErrorCodes_8h_source.html#l00105">ErrorCodes.h:105</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_html_a32d6d3ce1a48272b677d2c88b1d30932a9a898f996bdd8a3b2e718444d86e1640"><div class="ttname"><a href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932a9a898f996bdd8a3b2e718444d86e1640">ripple::rpcNOT_IMPL</a></div><div class="ttdeci">@ rpcNOT_IMPL</div><div class="ttdef"><b>Definition:</b> <a href="ErrorCodes_8h_source.html#l00131">ErrorCodes.h:131</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_html_a32d6d3ce1a48272b677d2c88b1d30932a967859223f75630b2c78876fca0c0436"><div class="ttname"><a href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932a967859223f75630b2c78876fca0c0436">ripple::rpcSRC_ACT_MALFORMED</a></div><div class="ttdeci">@ rpcSRC_ACT_MALFORMED</div><div class="ttdef"><b>Definition:</b> <a href="ErrorCodes_8h_source.html#l00120">ErrorCodes.h:120</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_html"><div class="ttname"><a href="namespaceripple.html">ripple</a></div><div class="ttdoc">Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.</div><div class="ttdef"><b>Definition:</b> <a href="RCLCensorshipDetector_8h_source.html#l00029">RCLCensorshipDetector.h:29</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_html_a32d6d3ce1a48272b677d2c88b1d30932abbd1895751c150ad43066e45683a3a6a"><div class="ttname"><a href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932abbd1895751c150ad43066e45683a3a6a">ripple::rpcFORBIDDEN</a></div><div class="ttdeci">@ rpcFORBIDDEN</div><div class="ttdef"><b>Definition:</b> <a href="ErrorCodes_8h_source.html#l00048">ErrorCodes.h:48</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_html_a32d6d3ce1a48272b677d2c88b1d30932a4fba57dbbed9bfaa196e1a0e0915dc8a"><div class="ttname"><a href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932a4fba57dbbed9bfaa196e1a0e0915dc8a">ripple::rpcACT_MALFORMED</a></div><div class="ttdeci">@ rpcACT_MALFORMED</div><div class="ttdef"><b>Definition:</b> <a href="ErrorCodes_8h_source.html#l00090">ErrorCodes.h:90</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_html_a32d6d3ce1a48272b677d2c88b1d30932a89a147d7376535a497c85024dabc9167"><div class="ttname"><a href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932a89a147d7376535a497c85024dabc9167">ripple::rpcBAD_SYNTAX</a></div><div class="ttdeci">@ rpcBAD_SYNTAX</div><div class="ttdef"><b>Definition:</b> <a href="ErrorCodes_8h_source.html#l00046">ErrorCodes.h:46</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_html_a32d6d3ce1a48272b677d2c88b1d30932a2e316006c45784996f1c36ff28ecf795"><div class="ttname"><a href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932a2e316006c45784996f1c36ff28ecf795">ripple::rpcUNKNOWN_COMMAND</a></div><div class="ttdeci">@ rpcUNKNOWN_COMMAND</div><div class="ttdef"><b>Definition:</b> <a href="ErrorCodes_8h_source.html#l00085">ErrorCodes.h:85</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_html_a32d6d3ce1a48272b677d2c88b1d30932a3df7a80b8a138b99a8e0723d2364d798"><div class="ttname"><a href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932a3df7a80b8a138b99a8e0723d2364d798">ripple::rpcLGR_NOT_VALIDATED</a></div><div class="ttdeci">@ rpcLGR_NOT_VALIDATED</div><div class="ttdef"><b>Definition:</b> <a href="ErrorCodes_8h_source.html#l00073">ErrorCodes.h:73</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_html_a32d6d3ce1a48272b677d2c88b1d30932af84f0f070938fb2e6bfc21dd28e98c5c"><div class="ttname"><a href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932af84f0f070938fb2e6bfc21dd28e98c5c">ripple::rpcNO_PERMISSION</a></div><div class="ttdeci">@ rpcNO_PERMISSION</div><div class="ttdef"><b>Definition:</b> <a href="ErrorCodes_8h_source.html#l00053">ErrorCodes.h:53</a></div></div>
|
|
<div class="ttc" id="acassert_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/header/cassert.html">cassert</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_html_a32d6d3ce1a48272b677d2c88b1d30932aec7db9d4762c3d0f12eb05fefd12e905"><div class="ttname"><a href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932aec7db9d4762c3d0f12eb05fefd12e905">ripple::rpcFAILED_TO_FORWARD</a></div><div class="ttdeci">@ rpcFAILED_TO_FORWARD</div><div class="ttdef"><b>Definition:</b> <a href="ErrorCodes_8h_source.html#l00140">ErrorCodes.h:140</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_html_a32d6d3ce1a48272b677d2c88b1d30932ab6f7ca2b4e8b89a35acdbda0e1af8985"><div class="ttname"><a href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932ab6f7ca2b4e8b89a35acdbda0e1af8985">ripple::rpcLGR_IDX_MALFORMED</a></div><div class="ttdeci">@ rpcLGR_IDX_MALFORMED</div><div class="ttdef"><b>Definition:</b> <a href="ErrorCodes_8h_source.html#l00113">ErrorCodes.h:113</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_html_a32d6d3ce1a48272b677d2c88b1d30932aa67c34c5d359f52c3f1fdcf2ce06dbc9"><div class="ttname"><a href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932aa67c34c5d359f52c3f1fdcf2ce06dbc9">ripple::rpcCHANNEL_MALFORMED</a></div><div class="ttdeci">@ rpcCHANNEL_MALFORMED</div><div class="ttdef"><b>Definition:</b> <a href="ErrorCodes_8h_source.html#l00100">ErrorCodes.h:100</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_html_a32d6d3ce1a48272b677d2c88b1d30932ae21a94cfc5c7f48c1bdf6fd45b21e88b"><div class="ttname"><a href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932ae21a94cfc5c7f48c1bdf6fd45b21e88b">ripple::rpcDST_AMT_MISSING</a></div><div class="ttdeci">@ rpcDST_AMT_MISSING</div><div class="ttdef"><b>Definition:</b> <a href="ErrorCodes_8h_source.html#l00107">ErrorCodes.h:107</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_html_a32d6d3ce1a48272b677d2c88b1d30932aa4f3cb4313d397ba327dfc49ce439cae"><div class="ttname"><a href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932aa4f3cb4313d397ba327dfc49ce439cae">ripple::rpcUNKNOWN</a></div><div class="ttdeci">@ rpcUNKNOWN</div><div class="ttdef"><b>Definition:</b> <a href="ErrorCodes_8h_source.html#l00042">ErrorCodes.h:42</a></div></div>
|
|
<div class="ttc" id="aout_of_range_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/error/out_of_range.html">std::out_of_range</a></div><div class="ttdoc">STL class.</div></div>
|
|
<div class="ttc" id="anamespaceripple_html_a32d6d3ce1a48272b677d2c88b1d30932a64f2f624cc4844b4907be821dccabbd9"><div class="ttname"><a href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932a64f2f624cc4844b4907be821dccabbd9">ripple::rpcBAD_MARKET</a></div><div class="ttdeci">@ rpcBAD_MARKET</div><div class="ttdef"><b>Definition:</b> <a href="ErrorCodes_8h_source.html#l00097">ErrorCodes.h:97</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_html_a32d6d3ce1a48272b677d2c88b1d30932a2a99d997786c15b8688fdcd6242d386f"><div class="ttname"><a href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932a2a99d997786c15b8688fdcd6242d386f">ripple::rpcINVALID_LGR_RANGE</a></div><div class="ttdeci">@ rpcINVALID_LGR_RANGE</div><div class="ttdef"><b>Definition:</b> <a href="ErrorCodes_8h_source.html#l00136">ErrorCodes.h:136</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_html_a32d6d3ce1a48272b677d2c88b1d30932ad23b4971210983fe07f7225143e02225"><div class="ttname"><a href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932ad23b4971210983fe07f7225143e02225">ripple::rpcSRC_CUR_MALFORMED</a></div><div class="ttdeci">@ rpcSRC_CUR_MALFORMED</div><div class="ttdef"><b>Definition:</b> <a href="ErrorCodes_8h_source.html#l00124">ErrorCodes.h:124</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_html_a32d6d3ce1a48272b677d2c88b1d30932a04a908ae049e097e9e7896ba3deef874"><div class="ttname"><a href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932a04a908ae049e097e9e7896ba3deef874">ripple::rpcDST_ACT_MISSING</a></div><div class="ttdeci">@ rpcDST_ACT_MISSING</div><div class="ttdef"><b>Definition:</b> <a href="ErrorCodes_8h_source.html#l00104">ErrorCodes.h:104</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_1_1RPC_1_1detail_html_a9483f36948ba569447b0aa0d6d250999"><div class="ttname"><a href="namespaceripple_1_1RPC_1_1detail.html#a9483f36948ba569447b0aa0d6d250999">ripple::RPC::detail::sortErrorInfos</a></div><div class="ttdeci">constexpr auto sortErrorInfos(ErrorInfo const (&unordered)[N]) -> ErrorInfoArray< M ></div><div class="ttdef"><b>Definition:</b> <a href="ErrorCodes_8cpp_source.html#l00146">ErrorCodes.cpp:146</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_html_a32d6d3ce1a48272b677d2c88b1d30932abc5ca87666d140c5f56880e7a7448773"><div class="ttname"><a href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932abc5ca87666d140c5f56880e7a7448773">ripple::rpcNO_CLOSED</a></div><div class="ttdeci">@ rpcNO_CLOSED</div><div class="ttdef"><b>Definition:</b> <a href="ErrorCodes_8h_source.html#l00064">ErrorCodes.h:64</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_html_a32d6d3ce1a48272b677d2c88b1d30932a888a186bc5ae79d68140783e22298394"><div class="ttname"><a href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932a888a186bc5ae79d68140783e22298394">ripple::rpcBAD_SECRET</a></div><div class="ttdeci">@ rpcBAD_SECRET</div><div class="ttdef"><b>Definition:</b> <a href="ErrorCodes_8h_source.html#l00098">ErrorCodes.h:98</a></div></div>
|
|
<div class="ttc" id="astructripple_1_1RPC_1_1detail_1_1ErrorInfoArray_html"><div class="ttname"><a href="structripple_1_1RPC_1_1detail_1_1ErrorInfoArray.html">ripple::RPC::detail::ErrorInfoArray</a></div><div class="ttdef"><b>Definition:</b> <a href="ErrorCodes_8cpp_source.html#l00131">ErrorCodes.cpp:131</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_html_a32d6d3ce1a48272b677d2c88b1d30932a06d57c943aeb0aff8b6d87d64cbcfa04"><div class="ttname"><a href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932a06d57c943aeb0aff8b6d87d64cbcfa04">ripple::rpcBAD_ISSUER</a></div><div class="ttdeci">@ rpcBAD_ISSUER</div><div class="ttdef"><b>Definition:</b> <a href="ErrorCodes_8h_source.html#l00096">ErrorCodes.h:96</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_1_1RPC_1_1detail_html_a1c421dba7e45127b0b9173b56ec5d34e"><div class="ttname"><a href="namespaceripple_1_1RPC_1_1detail.html#a1c421dba7e45127b0b9173b56ec5d34e">ripple::RPC::detail::unorderedErrorInfos</a></div><div class="ttdeci">constexpr static ErrorInfo unorderedErrorInfos[]</div><div class="ttdef"><b>Definition:</b> <a href="ErrorCodes_8cpp_source.html#l00034">ErrorCodes.cpp:34</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_1_1RPC_html_a577bde9602a28f59e445c496f92a1ccf"><div class="ttname"><a href="namespaceripple_1_1RPC.html#a577bde9602a28f59e445c496f92a1ccf">ripple::RPC::inject_error</a></div><div class="ttdeci">void inject_error(error_code_i code, JsonValue &json)</div><div class="ttdoc">Add or update the json update to reflect the error code.</div><div class="ttdef"><b>Definition:</b> <a href="ErrorCodes_8h_source.html#l00193">ErrorCodes.h:193</a></div></div>
|
|
<div class="ttc" id="astructripple_1_1RPC_1_1detail_1_1ErrorInfoArray_html_a0852a2d0a978189852322f5bb605eccd"><div class="ttname"><a href="structripple_1_1RPC_1_1detail_1_1ErrorInfoArray.html#a0852a2d0a978189852322f5bb605eccd">ripple::RPC::detail::ErrorInfoArray::ErrorInfoArray</a></div><div class="ttdeci">constexpr ErrorInfoArray()</div><div class="ttdef"><b>Definition:</b> <a href="ErrorCodes_8cpp_source.html#l00135">ErrorCodes.cpp:135</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_html_a32d6d3ce1a48272b677d2c88b1d30932a55f16b6766448484475fc0f2db63d92b"><div class="ttname"><a href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932a55f16b6766448484475fc0f2db63d92b">ripple::rpcMASTER_DISABLED</a></div><div class="ttdeci">@ rpcMASTER_DISABLED</div><div class="ttdef"><b>Definition:</b> <a href="ErrorCodes_8h_source.html#l00074">ErrorCodes.h:74</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_1_1RPC_html_a2cd6200f6709780fcf1dd26ec9cd2866"><div class="ttname"><a href="namespaceripple_1_1RPC.html#a2cd6200f6709780fcf1dd26ec9cd2866">ripple::RPC::make_error</a></div><div class="ttdeci">Json::Value make_error(error_code_i code)</div><div class="ttdoc">Returns a new json object that reflects the error code.</div><div class="ttdef"><b>Definition:</b> <a href="ErrorCodes_8cpp_source.html#l00209">ErrorCodes.cpp:209</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_html_a32d6d3ce1a48272b677d2c88b1d30932a5a9afe2f583b5c5e615979d14c00e7bd"><div class="ttname"><a href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932a5a9afe2f583b5c5e615979d14c00e7bd">ripple::rpcBAD_FEATURE</a></div><div class="ttdeci">@ rpcBAD_FEATURE</div><div class="ttdef"><b>Definition:</b> <a href="ErrorCodes_8h_source.html#l00095">ErrorCodes.h:95</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_html_a32d6d3ce1a48272b677d2c88b1d30932aaa66891292b88906637528756e064d1e"><div class="ttname"><a href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932aaa66891292b88906637528756e064d1e">ripple::rpcNO_PF_REQUEST</a></div><div class="ttdeci">@ rpcNO_PF_REQUEST</div><div class="ttdef"><b>Definition:</b> <a href="ErrorCodes_8h_source.html#l00086">ErrorCodes.h:86</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_html_a32d6d3ce1a48272b677d2c88b1d30932af301bbeaf5fcfb44db08132e6eae4ac2"><div class="ttname"><a href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932af301bbeaf5fcfb44db08132e6eae4ac2">ripple::rpcNOT_SYNCED</a></div><div class="ttdeci">@ rpcNOT_SYNCED</div><div class="ttdef"><b>Definition:</b> <a href="ErrorCodes_8h_source.html#l00067">ErrorCodes.h:67</a></div></div>
|
|
<div class="ttc" id="aclassJson_1_1Value_html"><div class="ttname"><a href="classJson_1_1Value.html">Json::Value</a></div><div class="ttdoc">Represents a JSON value.</div><div class="ttdef"><b>Definition:</b> <a href="json__value_8h_source.html#l00145">json_value.h:145</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_html_a32d6d3ce1a48272b677d2c88b1d30932a7a140417a251408888375e3b6c0cfcd5"><div class="ttname"><a href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932a7a140417a251408888375e3b6c0cfcd5">ripple::rpcEXPIRED_VALIDATOR_LIST</a></div><div class="ttdeci">@ rpcEXPIRED_VALIDATOR_LIST</div><div class="ttdef"><b>Definition:</b> <a href="ErrorCodes_8h_source.html#l00137">ErrorCodes.h:137</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_html_a32d6d3ce1a48272b677d2c88b1d30932a70a773ee3a341f5704835d3276b814a0"><div class="ttname"><a href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932a70a773ee3a341f5704835d3276b814a0">ripple::rpcSENDMAX_MALFORMED</a></div><div class="ttdeci">@ rpcSENDMAX_MALFORMED</div><div class="ttdef"><b>Definition:</b> <a href="ErrorCodes_8h_source.html#l00119">ErrorCodes.h:119</a></div></div>
|
|
<div class="ttc" id="astructripple_1_1RPC_1_1ErrorInfo_html_a905f6376e2efa99d9a5b52b0b107c0e7"><div class="ttname"><a href="structripple_1_1RPC_1_1ErrorInfo.html#a905f6376e2efa99d9a5b52b0b107c0e7">ripple::RPC::ErrorInfo::code</a></div><div class="ttdeci">error_code_i code</div><div class="ttdef"><b>Definition:</b> <a href="ErrorCodes_8h_source.html#l00180">ErrorCodes.h:180</a></div></div>
|
|
<div class="ttc" id="anamespaceripple_html_a32d6d3ce1a48272b677d2c88b1d30932a5b391b66e90a1cb080cf29d83141853d"><div class="ttname"><a href="namespaceripple.html#a32d6d3ce1a48272b677d2c88b1d30932a5b391b66e90a1cb080cf29d83141853d">ripple::rpcBAD_KEY_TYPE</a></div><div class="ttdeci">@ rpcBAD_KEY_TYPE</div><div class="ttdef"><b>Definition:</b> <a href="ErrorCodes_8h_source.html#l00133">ErrorCodes.h:133</a></div></div>
|
|
<div class="ttc" id="aclassJson_1_1Value_html_ab0d86bf425efefd03513e8dbfaca317b"><div class="ttname"><a href="classJson_1_1Value.html#ab0d86bf425efefd03513e8dbfaca317b">Json::Value::asString</a></div><div class="ttdeci">std::string asString() const</div><div class="ttdoc">Returns the unquoted string value.</div><div class="ttdef"><b>Definition:</b> <a href="json__value_8cpp_source.html#l00469">json_value.cpp:469</a></div></div>
|
|
<!-- start footer part -->
|
|
<hr class="footer"/><address class="footer"><small>
|
|
Generated by  <a href="http://www.doxygen.org/index.html">
|
|
<img class="footer" src="doxygen.png" alt="doxygen"/>
|
|
</a> 1.8.17
|
|
</small></address>
|
|
</body>
|
|
</html>
|