<areahref="classnlohmann_1_1detail_1_1invalid__iterator.html"title="exception indicating errors with iterators"alt="nlohmann::detail::invalid_iterator"shape="rect"coords="0,56,192,80"/>
<areahref="classnlohmann_1_1detail_1_1other__error.html"title="exception indicating other library errors"alt="nlohmann::detail::other_error"shape="rect"coords="202,56,394,80"/>
<areahref="classnlohmann_1_1detail_1_1out__of__range.html"title="exception indicating access out of the defined range"alt="nlohmann::detail::out_of_range"shape="rect"coords="404,56,596,80"/>
<areahref="classnlohmann_1_1detail_1_1parse__error.html"title="exception indicating a parse error"alt="nlohmann::detail::parse_error"shape="rect"coords="606,56,798,80"/>
<areahref="classnlohmann_1_1detail_1_1type__error.html"title="exception indicating executing a member function with a wrong type"alt="nlohmann::detail::type_error"shape="rect"coords="808,56,1000,80"/>
<trclass="memdesc:a11fe48748e811531614c84883b00ccd5"><tdclass="mdescLeft"> </td><tdclass="mdescRight">returns the explanatory string <br/></td></tr>
<trclass="memdesc:ad54778dc4f125488cbce8ec276dfdde2"><tdclass="mdescLeft"> </td><tdclass="mdescRight">an exception object as storage for error messages <br/></td></tr>
<divclass="textblock"><p>general exception of the <aclass="el"href="classnlohmann_1_1basic__json.html">basic_json</a> class </p>
<p>This class is an extension of <code>std::exception</code> objects with a member <em>id</em> for exception ids. It is used as the base class for all exceptions thrown by the <aclass="el"href="classnlohmann_1_1basic__json.html">basic_json</a> class. This class can hence be used as "wildcard" to catch exceptions.</p>
<p>Subclasses:</p><ul>
<li><aclass="el"href="classnlohmann_1_1detail_1_1parse__error.html">parse_error</a> for exceptions indicating a parse error</li>
<li><aclass="el"href="classnlohmann_1_1detail_1_1invalid__iterator.html">invalid_iterator</a> for exceptions indicating errors with iterators</li>
<li><aclass="el"href="classnlohmann_1_1detail_1_1type__error.html">type_error</a> for exceptions indicating executing a member function with a wrong type</li>
<li><aclass="el"href="classnlohmann_1_1detail_1_1out__of__range.html">out_of_range</a> for exceptions indicating access out of the defined range</li>
<li><aclass="el"href="classnlohmann_1_1detail_1_1other__error.html">other_error</a> for exceptions indicating other library errors</li>
</ul>
<p>@liveexample{The following code shows how arbitrary library exceptions can be caught.,exception}</p>