Class exception
Defined in File json.hpp
Inheritance Relationships
Base Type
public std::exception
Derived Types
public detail::invalid_iterator
(Class invalid_iterator)public detail::other_error
(Class other_error)public detail::out_of_range
(Class out_of_range)public detail::parse_error
(Class parse_error)public detail::type_error
(Class type_error)
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)
-
inline const char *what() const noexcept override