<areahref="classnlohmann_1_1detail_1_1exception.html"title="general exception of the basic_json class"alt="nlohmann::detail::exception"shape="rect"coords="0,0,173,24"/>
<trclass="inherit_header pub_methods_classnlohmann_1_1detail_1_1exception"><tdcolspan="2"onclick="javascript:toggleInherit('pub_methods_classnlohmann_1_1detail_1_1exception')"><imgsrc="closed.png"alt="-"/> Public Member Functions inherited from <aclass="el"href="classnlohmann_1_1detail_1_1exception.html">nlohmann::detail::exception</a></td></tr>
<trclass="memdesc:a0d4589a3fb54e81646d986c05efa3b9a inherit pub_attribs_classnlohmann_1_1detail_1_1exception"><tdclass="mdescLeft"> </td><tdclass="mdescRight">the id of the exception <br/></td></tr>
<divclass="textblock"><p>exception indicating other library errors </p>
<p>This exception is thrown in case of errors that cannot be classified with the other exception types.</p>
<p>Exceptions have ids 5xx.</p>
<tableclass="markdownTable">
<trclass="markdownTableHead">
<thclass="markdownTableHeadNone">name / id </th><thclass="markdownTableHeadNone">example message </th><thclass="markdownTableHeadNone">description </th></tr>
<trclass="markdownTableRowOdd">
<tdclass="markdownTableBodyNone">json.exception.other_error.501 </td><tdclass="markdownTableBodyNone">unsuccessful: {"op":"test","path":"/baz", "value":"bar"} </td><tdclass="markdownTableBodyNone">A JSON Patch operation 'test' failed. The unsuccessful operation is also printed. </td></tr>
</table>
<dlclass="section see"><dt>See also</dt><dd>- <aclass="el"href="classnlohmann_1_1detail_1_1exception.html">exception</a> for the base class of the library exceptions </dd>
<dd>
- <aclass="el"href="classnlohmann_1_1detail_1_1parse__error.html">parse_error</a> for exceptions indicating a parse error </dd>
<dd>
- <aclass="el"href="classnlohmann_1_1detail_1_1invalid__iterator.html">invalid_iterator</a> for exceptions indicating errors with iterators </dd>
<dd>
- <aclass="el"href="classnlohmann_1_1detail_1_1type__error.html">type_error</a> for exceptions indicating executing a member function with a wrong type </dd>
<dd>
- <aclass="el"href="classnlohmann_1_1detail_1_1out__of__range.html">out_of_range</a> for exceptions indicating access out of the defined range</dd></dl>
<p>@liveexample{The following code shows how an <code><aclass="el"href="classnlohmann_1_1detail_1_1other__error.html"title="exception indicating other library errors">other_error</a></code> exception can be caught.,<aclass="el"href="classnlohmann_1_1detail_1_1other__error.html"title="exception indicating other library errors">other_error</a>}</p>