Instrument Neutral Distributed Interface INDI  2.0.2
Public Member Functions | Public Attributes | Protected Member Functions | Static Protected Member Functions | List of all members
nlohmann::detail::exception Class Reference

general exception of the basic_json class More...

#include <json.h>

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

Public Member Functions

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

Public Attributes

const int id
 the id of the exception More...

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

Definition at line 4031 of file json.h.

Constructor & Destructor Documentation

◆ exception()

nlohmann::detail::exception::exception ( int  id_,
const char *  what_arg 

Definition at line 4045 of file json.h.

Member Function Documentation

◆ diagnostics() [1/2]

template<typename BasicJsonType >
static std::string nlohmann::detail::exception::diagnostics ( const BasicJsonType *  leaf_element)

Definition at line 4058 of file json.h.

◆ diagnostics() [2/2]

static std::string nlohmann::detail::exception::diagnostics ( std::nullptr_t  )

Definition at line 4052 of file json.h.

◆ name()

static std::string nlohmann::detail::exception::name ( const std::string &  ename,
int  id_ 

Definition at line 4047 of file json.h.

◆ what()

const char* nlohmann::detail::exception::what ( ) const

returns the explanatory string

Definition at line 4035 of file json.h.

Member Data Documentation

◆ id

const int nlohmann::detail::exception::id

the id of the exception

Definition at line 4041 of file json.h.

The documentation for this class was generated from the following file: