Skip to content

Commit

Permalink
deploy: 62d375d
Browse files Browse the repository at this point in the history
  • Loading branch information
kraxarn committed Aug 25, 2024
1 parent ff95e36 commit da414fa
Showing 1 changed file with 31 additions and 30 deletions.
61 changes: 31 additions & 30 deletions request_8hpp_source.html
Original file line number Diff line number Diff line change
Expand Up @@ -264,37 +264,38 @@
<div class="line"><a id="l00224" name="l00224"></a><span class="lineno"> 224</span> }</div>
<div class="line"><a id="l00225" name="l00225"></a><span class="lineno"> 225</span> <span class="keywordflow">catch</span> (<span class="keyword">const</span> nlohmann::json::parse_error &amp;e)</div>
<div class="line"><a id="l00226" name="l00226"></a><span class="lineno"> 226</span> {</div>
<div class="line"><a id="l00227" name="l00227"></a><span class="lineno"> 227</span> <a class="code hl_function" href="classlib_1_1log.html#a1999e6aa2a97ce318f453e91eeeac081">lib::log::debug</a>(<span class="stringliteral">&quot;JSON: {}&quot;</span>, data);</div>
<div class="line"><a id="l00228" name="l00228"></a><span class="lineno"> 228</span> <span class="keywordflow">return</span> <a class="code hl_function" href="classlib_1_1result.html#a9227d5a20285230afe413aee8c66838b">lib::result&lt;void *&gt;::fail</a>(e.what());</div>
<div class="line"><a id="l00229" name="l00229"></a><span class="lineno"> 229</span> }</div>
<div class="line"><a id="l00230" name="l00230"></a><span class="lineno"> 230</span> <span class="keywordflow">catch</span> (<span class="keyword">const</span> std::exception &amp;e)</div>
<div class="line"><a id="l00231" name="l00231"></a><span class="lineno"> 231</span> {</div>
<div class="line"><a id="l00232" name="l00232"></a><span class="lineno"> 232</span> <span class="keywordflow">return</span> <a class="code hl_function" href="classlib_1_1result.html#a9227d5a20285230afe413aee8c66838b">lib::result&lt;void *&gt;::fail</a>(e.what());</div>
<div class="line"><a id="l00233" name="l00233"></a><span class="lineno"> 233</span> }</div>
<div class="line"><a id="l00234" name="l00234"></a><span class="lineno"> 234</span> }</div>
<div class="line"><a id="l00235" name="l00235"></a><span class="lineno"> 235</span> </div>
<div class="line"><a id="l00236" name="l00236"></a><span class="lineno"> 236</span> <span class="keyword">static</span> <span class="keyword">auto</span> parse_error_message(<span class="keyword">const</span> std::string &amp;data) -&gt; std::string</div>
<div class="line"><a id="l00237" name="l00237"></a><span class="lineno"> 237</span> {</div>
<div class="line"><a id="l00238" name="l00238"></a><span class="lineno"> 238</span> <span class="keywordflow">try</span></div>
<div class="line"><a id="l00239" name="l00239"></a><span class="lineno"> 239</span> {</div>
<div class="line"><a id="l00240" name="l00240"></a><span class="lineno"> 240</span> <span class="keyword">const</span> nlohmann::json json = nlohmann::json::parse(data);</div>
<div class="line"><a id="l00241" name="l00241"></a><span class="lineno"> 241</span> <span class="keywordflow">return</span> <a class="code hl_function" href="classlib_1_1spt_1_1error.html#ac3d46b191da87ae88b6aae7467722b80">lib::spt::error::is</a>(json)</div>
<div class="line"><a id="l00242" name="l00242"></a><span class="lineno"> 242</span> ? <a class="code hl_function" href="classlib_1_1spt_1_1error.html#aac5f0ee9aa261fd7a8cb1b76a499faee">lib::spt::error::error_message</a>(json)</div>
<div class="line"><a id="l00243" name="l00243"></a><span class="lineno"> 243</span> : data;</div>
<div class="line"><a id="l00244" name="l00244"></a><span class="lineno"> 244</span> }</div>
<div class="line"><a id="l00245" name="l00245"></a><span class="lineno"> 245</span> <span class="keywordflow">catch</span> (<span class="keyword">const</span> std::exception &amp;e)</div>
<div class="line"><a id="l00246" name="l00246"></a><span class="lineno"> 246</span> {</div>
<div class="line"><a id="l00247" name="l00247"></a><span class="lineno"> 247</span> lib::log::error(<span class="stringliteral">&quot;Failed to parse error message: {}&quot;</span>, e.what());</div>
<div class="line"><a id="l00248" name="l00248"></a><span class="lineno"> 248</span> <span class="keywordflow">return</span> data;</div>
<div class="line"><a id="l00249" name="l00249"></a><span class="lineno"> 249</span> }</div>
<div class="line"><a id="l00250" name="l00250"></a><span class="lineno"> 250</span> }</div>
<div class="line"><a id="l00251" name="l00251"></a><span class="lineno"> 251</span> </div>
<div class="line"><a id="l00252" name="l00252"></a><span class="lineno"> 252</span> <span class="comment">// Until all requests are moved to here</span></div>
<div class="line"><a id="l00253" name="l00253"></a><span class="lineno"> 253</span> <span class="keyword">friend</span> <span class="keyword">class </span>api;</div>
<div class="line"><a id="l00254" name="l00254"></a><span class="lineno"> 254</span> };</div>
<div class="line"><a id="l00227" name="l00227"></a><span class="lineno"> 227</span> <a class="code hl_function" href="classlib_1_1log.html#a1999e6aa2a97ce318f453e91eeeac081">log::debug</a>(<span class="stringliteral">&quot;Failed to parse json: {}&quot;</span>, e.what());</div>
<div class="line"><a id="l00228" name="l00228"></a><span class="lineno"> 228</span> <a class="code hl_function" href="classlib_1_1log.html#a1999e6aa2a97ce318f453e91eeeac081">log::debug</a>(<span class="stringliteral">&quot;JSON: {}&quot;</span>, data);</div>
<div class="line"><a id="l00229" name="l00229"></a><span class="lineno"> 229</span> <span class="keywordflow">return</span> <a class="code hl_function" href="classlib_1_1result.html#aeb689aa457c1ff79bee90c4eedf95f3c">result&lt;void *&gt;::ok</a>(<span class="keyword">nullptr</span>);</div>
<div class="line"><a id="l00230" name="l00230"></a><span class="lineno"> 230</span> }</div>
<div class="line"><a id="l00231" name="l00231"></a><span class="lineno"> 231</span> <span class="keywordflow">catch</span> (<span class="keyword">const</span> std::exception &amp;e)</div>
<div class="line"><a id="l00232" name="l00232"></a><span class="lineno"> 232</span> {</div>
<div class="line"><a id="l00233" name="l00233"></a><span class="lineno"> 233</span> <span class="keywordflow">return</span> <a class="code hl_function" href="classlib_1_1result.html#a9227d5a20285230afe413aee8c66838b">lib::result&lt;void *&gt;::fail</a>(e.what());</div>
<div class="line"><a id="l00234" name="l00234"></a><span class="lineno"> 234</span> }</div>
<div class="line"><a id="l00235" name="l00235"></a><span class="lineno"> 235</span> }</div>
<div class="line"><a id="l00236" name="l00236"></a><span class="lineno"> 236</span> </div>
<div class="line"><a id="l00237" name="l00237"></a><span class="lineno"> 237</span> <span class="keyword">static</span> <span class="keyword">auto</span> parse_error_message(<span class="keyword">const</span> std::string &amp;data) -&gt; std::string</div>
<div class="line"><a id="l00238" name="l00238"></a><span class="lineno"> 238</span> {</div>
<div class="line"><a id="l00239" name="l00239"></a><span class="lineno"> 239</span> <span class="keywordflow">try</span></div>
<div class="line"><a id="l00240" name="l00240"></a><span class="lineno"> 240</span> {</div>
<div class="line"><a id="l00241" name="l00241"></a><span class="lineno"> 241</span> <span class="keyword">const</span> nlohmann::json json = nlohmann::json::parse(data);</div>
<div class="line"><a id="l00242" name="l00242"></a><span class="lineno"> 242</span> <span class="keywordflow">return</span> <a class="code hl_function" href="classlib_1_1spt_1_1error.html#ac3d46b191da87ae88b6aae7467722b80">lib::spt::error::is</a>(json)</div>
<div class="line"><a id="l00243" name="l00243"></a><span class="lineno"> 243</span> ? <a class="code hl_function" href="classlib_1_1spt_1_1error.html#aac5f0ee9aa261fd7a8cb1b76a499faee">lib::spt::error::error_message</a>(json)</div>
<div class="line"><a id="l00244" name="l00244"></a><span class="lineno"> 244</span> : data;</div>
<div class="line"><a id="l00245" name="l00245"></a><span class="lineno"> 245</span> }</div>
<div class="line"><a id="l00246" name="l00246"></a><span class="lineno"> 246</span> <span class="keywordflow">catch</span> (<span class="keyword">const</span> std::exception &amp;e)</div>
<div class="line"><a id="l00247" name="l00247"></a><span class="lineno"> 247</span> {</div>
<div class="line"><a id="l00248" name="l00248"></a><span class="lineno"> 248</span> lib::log::error(<span class="stringliteral">&quot;Failed to parse error message: {}&quot;</span>, e.what());</div>
<div class="line"><a id="l00249" name="l00249"></a><span class="lineno"> 249</span> <span class="keywordflow">return</span> data;</div>
<div class="line"><a id="l00250" name="l00250"></a><span class="lineno"> 250</span> }</div>
<div class="line"><a id="l00251" name="l00251"></a><span class="lineno"> 251</span> }</div>
<div class="line"><a id="l00252" name="l00252"></a><span class="lineno"> 252</span> </div>
<div class="line"><a id="l00253" name="l00253"></a><span class="lineno"> 253</span> <span class="comment">// Until all requests are moved to here</span></div>
<div class="line"><a id="l00254" name="l00254"></a><span class="lineno"> 254</span> <span class="keyword">friend</span> <span class="keyword">class </span>api;</div>
<div class="line"><a id="l00255" name="l00255"></a><span class="lineno"> 255</span> };</div>
</div>
<div class="line"><a id="l00255" name="l00255"></a><span class="lineno"> 255</span> }</div>
<div class="line"><a id="l00256" name="l00256"></a><span class="lineno"> 256</span>}</div>
<div class="line"><a id="l00256" name="l00256"></a><span class="lineno"> 256</span> }</div>
<div class="line"><a id="l00257" name="l00257"></a><span class="lineno"> 257</span>}</div>
<div class="ttc" id="aclasslib_1_1http__client_html"><div class="ttname"><a href="classlib_1_1http__client.html">lib::http_client</a></div><div class="ttdef"><b>Definition</b> httpclient.hpp:21</div></div>
<div class="ttc" id="aclasslib_1_1json_html"><div class="ttname"><a href="classlib_1_1json.html">lib::json</a></div><div class="ttdef"><b>Definition</b> json.hpp:17</div></div>
<div class="ttc" id="aclasslib_1_1log_html_a1999e6aa2a97ce318f453e91eeeac081"><div class="ttname"><a href="classlib_1_1log.html#a1999e6aa2a97ce318f453e91eeeac081">lib::log::debug</a></div><div class="ttdeci">static void debug(const Format &amp;fmt, const Arg &amp;arg, Args &amp;&amp;... args)</div><div class="ttdef"><b>Definition</b> log.hpp:78</div></div>
Expand Down

0 comments on commit da414fa

Please sign in to comment.