Ditto 4.8.0
Loading...
Searching...
No Matches
detail::exception Class Reference

general exception of the basic_json class More...

#include <json.hpp>

Inheritance diagram for detail::exception:
detail::invalid_iterator detail::other_error detail::out_of_range detail::parse_error detail::type_error

Public Member Functions

const char * what () const noexcept override
 returns the explanatory string
 

Public Attributes

const int id
 the id of the exception
 

Protected Member Functions

 exception (int id_, const char *what_arg)
 

Static Protected Member Functions

static std::string name (const std::string &ename, int id_)
 
static std::string diagnostics (std::nullptr_t)
 
template<typename BasicJsonType >
static std::string diagnostics (const BasicJsonType *leaf_element)
 

Detailed Description

general exception of the basic_json class

See also
https://json.nlohmann.me/api/basic_json/exception/