Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
Public Member Functions | Data Fields | Protected Member Functions | Static Protected Member Functions
detail::exception Class Reference

general exception of the basic_json class More...

#include <json.h>

Inheritance diagram for detail::exception:
Inheritance graph
[legend]
Collaboration diagram for detail::exception:
Collaboration graph
[legend]

Public Member Functions

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

Data Fields

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/

Definition at line 4371 of file json.h.

Constructor & Destructor Documentation

◆ exception()

detail::exception::exception ( int  id_,
const char *  what_arg 
)
inlineprotected

Definition at line 4385 of file json.h.

Member Function Documentation

◆ diagnostics() [1/2]

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

Definition at line 4398 of file json.h.

◆ diagnostics() [2/2]

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

Definition at line 4392 of file json.h.

◆ name()

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

Definition at line 4387 of file json.h.

◆ what()

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

returns the explanatory string

Definition at line 4375 of file json.h.

Field Documentation

◆ id

const int detail::exception::id

the id of the exception

Definition at line 4381 of file json.h.


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