Class exception

Inheritance Relationships

Base Type

  • public std::exception

Derived Types

Class Documentation

class exception : public std::exception

general exception of the basic_json class

Subclassed by detail::invalid_iterator, detail::other_error, detail::out_of_range, detail::parse_error, detail::type_error

Public Functions

inline const char *what() const noexcept override

returns the explanatory string

Public Members

const int id

the id of the exception

Protected Functions

inline exception(int id_, const char *what_arg)

Protected Static Functions

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